Package org.apache.fulcrum.testcontainer
Klasse YAAFIContainer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.testcontainer.YAAFIContainer
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Disposable
,org.apache.avalon.framework.activity.Initializable
,org.apache.avalon.framework.logger.LogEnabled
,Container
public class YAAFIContainer
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Container
This is a simple YAAFI based container that can be used in unit test
of the fulcrum components.
- Autor:
- Siegfried Goeschl
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.testcontainer.Container
COMPONENT_APP_ROOT, URN_AVALON_HOME, URN_AVALON_TEMP
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
dispose()
Disposes of the container and releases resources.void
Initializes the container.Returns an instance of the named component.void
Releases the component.void
release
(org.apache.avalon.framework.component.Component component) Releases the component implementing the Component interface.void
Starts up the container and initializes it.Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
YAAFIContainer
public YAAFIContainer()Constructor. -
YAAFIContainer
public YAAFIContainer(int logLevel) Constructor.- Parameter:
logLevel
- the log level to be used:ConsoleLogger
LEVEL_*.
-
-
Methodendetails
-
startup
Starts up the container and initializes it. -
initialize
Initializes the container.- Angegeben von:
initialize
in Schnittstelleorg.apache.avalon.framework.activity.Initializable
- Löst aus:
Exception
- generic exception
-
dispose
public void dispose()Disposes of the container and releases resources.- Angegeben von:
dispose
in Schnittstelleorg.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 implementing the Component interface. This interface is deprecated but still around in Fulcrum- Parameter:
component
- instance of the component to release
-
release
Releases the component.
-