|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler
org.apache.avalon.fortress.impl.handler.PoolableComponentHandler
public final class PoolableComponentHandler
The PoolableComponentHandler to make sure components are initialized and destroyed correctly.
| Field Summary | |
|---|---|
private org.d_haven.mpool.Pool |
m_pool
The pool of components for Poolable Components |
private org.d_haven.mpool.PoolManager |
m_poolManager
The instance of the PoolManager to create the Pool for the Handler |
private int |
m_poolMin
The Config element for the poolable |
| Fields inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
|---|
m_disposed, m_factory, m_logger, m_loggerManager, m_prepared |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
|---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
|---|---|
PoolableComponentHandler()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configuration of the handler under which the minimum pool size is established. |
protected java.lang.Object |
doGet()
Get a reference of the desired Component |
protected void |
doPrepare()
Initialize the ComponentHandler. |
protected void |
doPut(java.lang.Object component)
Return a reference of the desired Component |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
Application of suporting services to the handler. |
| Methods inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
|---|
dispose, disposeComponent, doDispose, get, getComponentClass, initialize, newComponent, prepareHandler, put, toString |
| Methods inherited from class org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable |
|---|
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private org.d_haven.mpool.PoolManager m_poolManager
private org.d_haven.mpool.Pool m_pool
Poolable Components
private int m_poolMin
| Constructor Detail |
|---|
public PoolableComponentHandler()
| Method Detail |
|---|
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableservice in class AbstractComponentHandlerserviceManager - the service manager
org.apache.avalon.framework.service.ServiceException - if a service related error occurspublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
configure in interface org.apache.avalon.framework.configuration.Configurableconfiguration - the configuration fragment
protected void doPrepare()
throws java.lang.Exception
doPrepare in class AbstractComponentHandlerjava.lang.Exception - if an error occurs
protected java.lang.Object doGet()
throws java.lang.Exception
doGet in class AbstractComponentHandlerjava.lang.Exception - if an error occursprotected void doPut(java.lang.Object component)
doPut in class AbstractComponentHandlercomponent - the component to return to the handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||