org.apache.avalon.fortress.impl
Class DefaultContainerManager

java.lang.Object
  |
  +--org.apache.avalon.fortress.impl.DefaultContainerManager
All Implemented Interfaces:
ContainerConstants, ContainerManager, ContainerManagerConstants, Disposable, Initializable

public class DefaultContainerManager
extends Object
implements Initializable, Disposable, ContainerManager, ContainerManagerConstants

This is the default implementation of the ContainerManager interface. See that interface for a description.

Version:
CVS $Revision: 1.26 $ $Date: 2003/06/04 15:48:36 $
Author:
The Avalon Team

Field Summary
 
Fields inherited from interface org.apache.avalon.fortress.ContainerManagerConstants
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(Context initParameters)
           
DefaultContainerManager(Context initParameters, Logger logger)
           
DefaultContainerManager(ContextManager contextManager)
           
DefaultContainerManager(ContextManager contextManager, Logger logger)
           
 
Method Summary
protected  Logger createLoggerFromContext(Context initParameters)
           
 void dispose()
          Dispose of the ContainerManager and managed Container
protected  void disposeContainer()
           
 Object getContainer()
          Get a reference to your Container.
 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
 

Constructor Detail

DefaultContainerManager

public DefaultContainerManager(ContextManager contextManager)

DefaultContainerManager

public DefaultContainerManager(ContextManager contextManager,
                               Logger logger)

DefaultContainerManager

public DefaultContainerManager(Context initParameters)

DefaultContainerManager

public DefaultContainerManager(Context initParameters,
                               Logger logger)
Method Detail

createLoggerFromContext

protected Logger createLoggerFromContext(Context initParameters)

initialize

public void initialize()
                throws Exception
Initialize the ContainerManager

Specified by:
initialize in interface Initializable
Exception

initializeContainer

protected void initializeContainer()
                            throws InitializationException
InitializationException

disposeContainer

protected void disposeContainer()

dispose

public void dispose()
Dispose of the ContainerManager and managed Container

Specified by:
dispose in interface 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
Returns:
the container implementation

getLogger

public final Logger getLogger()
Allows to get the logger and associated hierarchy for logging.

Returns:
Logger


Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.