org.apache.cocoon.components
Class CocoonComponentManager
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.component.ExcaliburComponentManager
|
+--org.apache.cocoon.components.CocoonComponentManager
- All Implemented Interfaces:
- org.apache.avalon.framework.component.ComponentManager, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.logger.LogKitManageable, org.apache.avalon.excalibur.component.RoleManageable
- public final class CocoonComponentManager
- extends org.apache.avalon.excalibur.component.ExcaliburComponentManager
Cocoon Component Manager.
This manager extends the ExcaliburComponentManager
by a special lifecycle handling for a RequestLifecycleComponent.
- Version:
- CVS $Revision: 1.3 $ $Date: 2002/01/28 13:29:16 $
- Author:
- Carsten Ziegeler
Constructor Summary |
CocoonComponentManager()
Create the ComponentManager |
CocoonComponentManager(java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader |
CocoonComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
Create the ComponentManager with a parent ComponentManager |
CocoonComponentManager(org.apache.avalon.framework.component.ComponentManager manager,
java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader and parent ComponentManager |
Method Summary |
static void |
enterEnvironment(SourceResolver resolver,
java.util.Map objectModel)
This hook must be called by the sitemap each time a sitemap is entered |
static void |
leaveEnvironment()
This hook must be called by the sitemap each time a sitemap is left |
org.apache.avalon.framework.component.Component |
lookup(java.lang.String role)
Return an instance of a component based on a Role. |
void |
release(org.apache.avalon.framework.component.Component component)
Release a Component. |
Methods inherited from class org.apache.avalon.excalibur.component.ExcaliburComponentManager |
addComponent, addComponentInstance, configure, contextualize, dispose, hasComponent, initialize, setLogKitManager, setRoleManager |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CocoonComponentManager
public CocoonComponentManager()
- Create the ComponentManager
CocoonComponentManager
public CocoonComponentManager(java.lang.ClassLoader loader)
- Create the ComponentManager with a Classloader
CocoonComponentManager
public CocoonComponentManager(org.apache.avalon.framework.component.ComponentManager manager,
java.lang.ClassLoader loader)
- Create the ComponentManager with a Classloader and parent ComponentManager
CocoonComponentManager
public CocoonComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
- Create the ComponentManager with a parent ComponentManager
enterEnvironment
public static void enterEnvironment(SourceResolver resolver,
java.util.Map objectModel)
- This hook must be called by the sitemap each time a sitemap is entered
leaveEnvironment
public static void leaveEnvironment()
- This hook must be called by the sitemap each time a sitemap is left
lookup
public org.apache.avalon.framework.component.Component lookup(java.lang.String role)
throws org.apache.avalon.framework.component.ComponentException
- Return an instance of a component based on a Role. The Role is usually the Interface's
Fully Qualified Name(FQN)--unless there are multiple Components for the same Role. In that
case, the Role's FQN is appended with "Selector", and we return a ComponentSelector.
- Overrides:
lookup
in class org.apache.avalon.excalibur.component.ExcaliburComponentManager
release
public void release(org.apache.avalon.framework.component.Component component)
- Release a Component. This implementation makes sure it has a handle on the propper
ComponentHandler, and let's the ComponentHandler take care of the actual work.
- Overrides:
release
in class org.apache.avalon.excalibur.component.ExcaliburComponentManager
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.