|
|||||||||
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.fulcrum.testcontainer.YAAFIContainer
public class YAAFIContainer
This is a simple YAAFI based container that can be used in unit test of the fulcrum components.
Field Summary |
---|
Fields inherited from interface org.apache.fulcrum.testcontainer.Container |
---|
COMPONENT_APP_ROOT, URN_AVALON_HOME, URN_AVALON_TEMP |
Constructor Summary | |
---|---|
YAAFIContainer()
Constructor |
Method Summary | |
---|---|
void |
dispose()
Disposes of the container and releases resources |
void |
initialize()
Initializes the container |
java.lang.Object |
lookup(java.lang.String roleName)
Returns an instance of the named component |
void |
release(org.apache.avalon.framework.component.Component component)
Releases the component implementing the Component interface. |
void |
release(java.lang.Object component)
Releases the component |
void |
startup(java.lang.String configFileName,
java.lang.String roleFileName,
java.lang.String parametersFileName)
Starts up the container and initializes it. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public YAAFIContainer()
Method Detail |
---|
public void startup(java.lang.String configFileName, java.lang.String roleFileName, java.lang.String parametersFileName)
startup
in interface Container
configFileName
- Name of the component configuration fileroleFileName
- Name of the role configuration filepublic void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
- generic exceptionpublic void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public java.lang.Object lookup(java.lang.String roleName) throws org.apache.avalon.framework.component.ComponentException
lookup
in interface Container
roleName
- Name of the role the component fills.
org.apache.avalon.framework.component.ComponentException
- generic exceptionpublic void release(org.apache.avalon.framework.component.Component component)
component
- public void release(java.lang.Object component)
release
in interface Container
component
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |