Klasse ECMContainer

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.testcontainer.ECMContainer
Alle implementierten Schnittstellen:
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$
Autor:
Quinton McCombs
  • Konstruktordetails

    • ECMContainer

      public ECMContainer()
      Constructor
  • Methodendetails

    • startup

      public void startup(String configFileName, String roleFileName, String parametersFileName)
      Starts up the container and initializes it.
      Angegeben von:
      startup in Schnittstelle Container
      Parameter:
      configFileName - Name of the component configuration file
      roleFileName - Name of the role configuration file
    • initialize

      public void initialize() throws Exception
      Initializes the container
      Angegeben von:
      initialize in Schnittstelle org.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 Schnittstelle org.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
      Angegeben von:
      lookup in Schnittstelle Container
      Parameter:
      roleName - Name of the role the component fills.
      Löst aus:
      org.apache.avalon.framework.component.ComponentException - generic exception
    • release

      public void release(org.apache.avalon.framework.component.Component component)
      Releases the component
      Parameter:
      component - instance of the component to release
    • release

      public void release(Object component)
      Angegeben von:
      release in Schnittstelle Container