|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.fortress.impl.DefaultContainerManager
public class DefaultContainerManager
This is the default implementation of the
ContainerManager
interface.
See that interface for a description.
Field Summary | |
---|---|
private java.lang.Object |
m_containerInstance
|
private ContextManager |
m_contextManager
|
private org.apache.avalon.framework.logger.Logger |
m_logger
|
Fields inherited from interface org.apache.avalon.fortress.ContainerManagerConstants |
---|
COMMAND_FAILURE_HANDLER_CLASS, CONFIGURATION, CONTAINER_CLASS, LOGGER, PARAMETERS, SERVICE_MANAGER |
Fields inherited from interface org.apache.avalon.fortress.ContainerConstants |
---|
CONTEXT_DIRECTORY, THREAD_TIMEOUT, THREADS_CPU, WORK_DIRECTORY |
Constructor Summary | |
---|---|
DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters)
|
|
DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters,
org.apache.avalon.framework.logger.Logger logger)
|
|
DefaultContainerManager(ContextManager contextManager)
|
|
DefaultContainerManager(ContextManager contextManager,
org.apache.avalon.framework.logger.Logger logger)
|
Method Summary | |
---|---|
private void |
createContainer()
|
protected org.apache.avalon.framework.logger.Logger |
createLoggerFromContext(org.apache.avalon.framework.context.Context initParameters)
|
void |
dispose()
Dispose of the ContainerManager and managed Container |
protected void |
disposeContainer()
|
java.lang.Object |
getContainer()
Get a reference to your Container. |
private java.lang.Object |
getContextEntry(org.apache.avalon.framework.context.Context context,
java.lang.String key)
Retrieve an entry from context if it exists, else return null. |
private static ContextManager |
getInitializedContextManager(org.apache.avalon.framework.context.Context initParameters,
org.apache.avalon.framework.logger.Logger logger)
Creates and initializes a contextManager given an initialization context. |
org.apache.avalon.framework.logger.Logger |
getLogger()
Allows to get the logger and associated hierarchy for logging. |
void |
initialize()
Initialize the ContainerManager |
protected void |
initializeContainer()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ContextManager m_contextManager
private final org.apache.avalon.framework.logger.Logger m_logger
private java.lang.Object m_containerInstance
Constructor Detail |
---|
public DefaultContainerManager(ContextManager contextManager)
public DefaultContainerManager(ContextManager contextManager, org.apache.avalon.framework.logger.Logger logger)
public DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters) throws java.lang.Exception
java.lang.Exception
public DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters, org.apache.avalon.framework.logger.Logger logger) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
private static ContextManager getInitializedContextManager(org.apache.avalon.framework.context.Context initParameters, org.apache.avalon.framework.logger.Logger logger) throws java.lang.Exception
java.lang.Exception
protected org.apache.avalon.framework.logger.Logger createLoggerFromContext(org.apache.avalon.framework.context.Context initParameters)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
protected void initializeContainer() throws org.apache.avalon.fortress.InitializationException
org.apache.avalon.fortress.InitializationException
private void createContainer() throws org.apache.avalon.fortress.InitializationException
org.apache.avalon.fortress.InitializationException
private java.lang.Object getContextEntry(org.apache.avalon.framework.context.Context context, java.lang.String key)
context
- the contextkey
- the key
protected void disposeContainer()
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public java.lang.Object getContainer()
getContainer
in interface org.apache.avalon.fortress.ContainerManager
public final org.apache.avalon.framework.logger.Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |