| org.apache.cocoon.components.CocoonComponentManager
All known Subclasses: org.apache.cocoon.environment.CocoonRunnable,
CocoonComponentManager | final public class CocoonComponentManager extends ExcaliburComponentManager implements SourceResolver,Component(Code) | | Cocoon Component Manager.
This manager extends the
ExcaliburComponentManager by a special lifecycle handling for a
RequestLifecycleComponent and by handling the lookup of the
SourceResolver .
WARNING: This is a "private" Cocoon core class - do NOT use this class
directly - and do not assume that a
ComponentManager you get
via the compose() method is an instance of CocoonComponentManager.
author: Björn Lütkemeier author: Carsten Ziegeler version: CVS $Id: CocoonComponentManager.java 540711 2007-05-22 19:36:07Z cziegeler $ |
Inner Class :abstract public static class AbstractCocoonRunnable implements Runnable | |
Method Summary | |
public void | addComponent(String role, Class clazz, Configuration conf) | public static void | addComponentForAutomaticRelease(ComponentSelector selector, Component component, ComponentManager manager) | public static void | addComponentForAutomaticRelease(ComponentManager manager, Component component) | public static void | checkEnvironment(int depth, Logger logger) INTERNAL METHOD. | public static XMLConsumer | createEnvironmentAwareConsumer(XMLConsumer consumer) | public void | dispose() | public static void | endProcessing(Environment env, Object key) This hook has to be called before a request is processed. | public static void | enterEnvironment(Environment env, ComponentManager manager, Processor processor) | public static Processor | getActiveProcessor(Environment env) | public static Environment | getCurrentEnvironment() | public static Processor | getCurrentProcessor() | public static ComponentManager | getSitemapComponentManager() Get the current sitemap component manager.
This method return the current sitemap component manager. | public void | initialize() | public static void | leaveEnvironment() This hook must be called by the sitemap each time a sitemap is left. | public static void | leaveEnvironment(boolean success) This hook must be called by the sitemap each time a sitemap is left. | public Component | lookup(String role) Return an instance of a component based on a Role. | public static int | markEnvironment() INTERNAL METHOD. | public void | release(Component component) Release a Component. | public void | release(Source source) | protected void | releaseRLComponent(Component component) | public static void | removeFromAutomaticRelease(Component component) | public Source | resolveURI(String location) Get a Source object. | public Source | resolveURI(String location, String baseURI, Map parameters) Get a Source object. | public void | setInstrumentManager(InstrumentManager iManager) | protected void | setParentManager(ComponentManager manager) | public static Object | startProcessing(Environment env) This hook has to be called before a request is processed. |
environmentStack | final protected static ThreadLocal environmentStack(Code) | | The environment information
|
CocoonComponentManager | public CocoonComponentManager()(Code) | | Create the ComponentManager
|
CocoonComponentManager | public CocoonComponentManager(ClassLoader loader)(Code) | | Create the ComponentManager with a Classloader
|
CocoonComponentManager | public CocoonComponentManager(ComponentManager manager, ClassLoader loader)(Code) | | Create the ComponentManager with a Classloader and parent ComponentManager
|
CocoonComponentManager | public CocoonComponentManager(ComponentManager manager)(Code) | | Create the ComponentManager with a parent ComponentManager
|
addComponent | public void addComponent(String role, Class clazz, Configuration conf) throws ComponentException(Code) | | |
addComponentForAutomaticRelease | public static void addComponentForAutomaticRelease(ComponentSelector selector, Component component, ComponentManager manager) throws ProcessingException(Code) | | Add an automatically released component
|
addComponentForAutomaticRelease | public static void addComponentForAutomaticRelease(ComponentManager manager, Component component) throws ProcessingException(Code) | | Add an automatically released component
|
checkEnvironment | public static void checkEnvironment(int depth, Logger logger) throws Exception(Code) | | INTERNAL METHOD. Do not use, can be removed without warning or deprecation cycle.
|
createEnvironmentAwareConsumer | public static XMLConsumer createEnvironmentAwareConsumer(XMLConsumer consumer)(Code) | | Create an environment aware xml consumer for the cocoon
protocol
|
dispose | public void dispose()(Code) | | Dispose
|
enterEnvironment | public static void enterEnvironment(Environment env, ComponentManager manager, Processor processor)(Code) | | This hook must be called by the sitemap each time a sitemap is entered
This method should never raise an exception, except when the
parameters are not set!
|
getActiveProcessor | public static Processor getActiveProcessor(Environment env)(Code) | | Return the processor that has actually processed the request
|
getCurrentEnvironment | public static Environment getCurrentEnvironment()(Code) | | Return the current environment (for the cocoon: protocol)
|
getCurrentProcessor | public static Processor getCurrentProcessor()(Code) | | Return the current processor (for the cocoon: protocol)
|
getSitemapComponentManager | public static ComponentManager getSitemapComponentManager()(Code) | | Get the current sitemap component manager.
This method return the current sitemap component manager. This
is the manager that holds all the components of the currently
processed (sub)sitemap.
|
lookup | public Component lookup(String role) throws ComponentException(Code) | | 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.
|
markEnvironment | public static int markEnvironment()(Code) | | INTERNAL METHOD. Do not use, can be removed without warning or deprecation cycle.
|
release | public void release(Component component)(Code) | | 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.
|
release | public void release(Source source)(Code) | | Releases a resolved resource
|
releaseRLComponent | protected void releaseRLComponent(Component component)(Code) | | Release a RequestLifecycleComponent
|
removeFromAutomaticRelease | public static void removeFromAutomaticRelease(Component component) throws ProcessingException(Code) | | Remove from automatically released components
|
setInstrumentManager | public void setInstrumentManager(InstrumentManager iManager)(Code) | | See Also: org.apache.avalon.excalibur.component.ExcaliburComponentManager.setInstrumentManager(org.apache.excalibur.instrument.InstrumentManager) |
setParentManager | protected void setParentManager(ComponentManager manager)(Code) | | |
startProcessing | public static Object startProcessing(Environment env)(Code) | | This hook has to be called before a request is processed.
The hook is called by the Cocoon component and by the
cocoon protocol implementation.
This method should never raise an exception, except when
the environment is not set.
A unique key within this thread. |
|
|