Package org.apache.fulcrum.testcontainer
Class ECMContainer
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.fulcrum.testcontainer.ECMContainer
-
- All Implemented Interfaces:
org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.activity.Initializable,org.apache.avalon.framework.logger.LogEnabled,Container
public class ECMContainer extends org.apache.avalon.framework.logger.AbstractLogEnabled implements Container
This is a simple ECM based container that can be used in unit test of the fulcrum components.- Version:
- $Id: ECMContainer.java 1848852 2018-12-13 14:54:04Z gk $
- Author:
- Quinton McCombs
-
-
Field Summary
-
Fields inherited from interface org.apache.fulcrum.testcontainer.Container
COMPONENT_APP_ROOT, URN_AVALON_HOME, URN_AVALON_TEMP
-
-
Constructor Summary
Constructors Constructor Description ECMContainer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes of the container and releases resourcesvoidinitialize()Initializes the containerObjectlookup(String roleName)Returns an instance of the named componentvoidrelease(Object component)voidrelease(org.apache.avalon.framework.component.Component component)Releases the componentvoidstartup(String configFileName, String roleFileName, String parametersFileName)Starts up the container and initializes it.
-
-
-
Method Detail
-
startup
public void startup(String configFileName, String roleFileName, String parametersFileName)
Starts up the container and initializes it.
-
initialize
public void initialize() throws ExceptionInitializes the container- Specified by:
initializein interfaceorg.apache.avalon.framework.activity.Initializable- Throws:
Exception- generic exception
-
dispose
public void dispose()
Disposes of the container and releases resources- Specified by:
disposein interfaceorg.apache.avalon.framework.activity.Disposable
-
lookup
public Object lookup(String roleName) throws org.apache.avalon.framework.component.ComponentException
Returns an instance of the named component
-
release
public void release(org.apache.avalon.framework.component.Component component)
Releases the component- Parameters:
component- instance of the component to release
-
-