org.apache.avalon.fortress.impl
Class DefaultContainerManager
java.lang.Object
org.apache.avalon.fortress.impl.DefaultContainerManager
- All Implemented Interfaces:
- ContainerConstants, ContainerManager, ContainerManagerConstants, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
public class DefaultContainerManager
- extends Object
- implements org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, ContainerManager, ContainerManagerConstants
This is the default implementation of the
ContainerManager
interface.
See that interface for a description.
- Version:
- CVS $Revision: 1.29 $ $Date: 2004/02/28 15:16:24 $
- Author:
- The Avalon Team
Method Summary |
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()
|
Object |
getContainer()
Get a reference to your Container. |
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 |
DefaultContainerManager
public DefaultContainerManager(ContextManager contextManager)
DefaultContainerManager
public DefaultContainerManager(ContextManager contextManager,
org.apache.avalon.framework.logger.Logger logger)
DefaultContainerManager
public DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters)
throws Exception
- Throws:
Exception
DefaultContainerManager
public DefaultContainerManager(org.apache.avalon.framework.context.Context initParameters,
org.apache.avalon.framework.logger.Logger logger)
throws Exception
- Throws:
Exception
createLoggerFromContext
protected org.apache.avalon.framework.logger.Logger createLoggerFromContext(org.apache.avalon.framework.context.Context initParameters)
initialize
public void initialize()
throws Exception
- Initialize the ContainerManager
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
Exception
initializeContainer
protected void initializeContainer()
throws InitializationException
- Throws:
InitializationException
disposeContainer
protected void disposeContainer()
dispose
public void dispose()
- Dispose of the ContainerManager and managed Container
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
getContainer
public Object getContainer()
- Get a reference to your Container. Typically, you would cast this to
whatever interface you will use to interact with it.
- Specified by:
getContainer
in interface ContainerManager
getLogger
public final org.apache.avalon.framework.logger.Logger getLogger()
- Allows to get the logger and associated hierarchy for logging.
- Returns:
- Logger
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.