org.apache.cocoon.components.profiler
Class ProfilingNonCachingEventPipeline
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLProducer
|
+--org.apache.cocoon.components.pipeline.AbstractEventPipeline
|
+--org.apache.cocoon.components.pipeline.NonCachingEventPipeline
|
+--org.apache.cocoon.components.profiler.ProfilingNonCachingEventPipeline
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.activity.Disposable, EventPipeline, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.framework.component.Recomposable, org.apache.avalon.excalibur.pool.Recyclable, XMLProducer
- public class ProfilingNonCachingEventPipeline
- extends NonCachingEventPipeline
- implements org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.activity.Disposable
- Version:
- CVS $Id: ProfilingNonCachingEventPipeline.java,v 1.4 2002/02/22 07:00:11 cziegeler Exp $
- Author:
- Vadim Gritsenko
Fields inherited from class org.apache.cocoon.components.pipeline.AbstractEventPipeline |
configuredSAXConnector, connectors, generator, generatorParam, generatorSelector, generatorSource, manager, newManager, transformerParams, transformers, transformerSelectors, transformerSources |
Fields inherited from interface org.apache.cocoon.components.pipeline.EventPipeline |
ROLE |
Method Summary |
void |
addTransformer(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param)
Add a transformer at the end of the pipeline.
|
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
|
void |
dispose()
|
boolean |
process(Environment environment)
Process the given Environment , producing the output. |
void |
recycle()
Recycle the producer by removing references |
void |
setGenerator(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param)
Set the generator that will be used as the initial step in the pipeline.
|
void |
setGenerator(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param,
java.lang.Exception e)
Same as setGenerator(String, String, Parameters) with an additional
Exception parameter. |
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 |
ProfilingNonCachingEventPipeline
public ProfilingNonCachingEventPipeline()
compose
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
throws org.apache.avalon.framework.component.ComponentException
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
- Overrides:
compose
in class AbstractEventPipeline
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
- Overrides:
dispose
in class AbstractEventPipeline
setGenerator
public void setGenerator(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param,
java.lang.Exception e)
throws java.lang.Exception
- Description copied from interface:
EventPipeline
- Same as
EventPipeline.setGenerator(String, String, Parameters)
with an additional
Exception
parameter. This is used for setting the special
{link org.apache.cocoon.sitemap.ErrorNotifier} generator used to generate
input for error pages.
- Overrides:
setGenerator
in class AbstractEventPipeline
- Following copied from interface:
org.apache.cocoon.components.pipeline.EventPipeline
- Parameters:
role
- the generator role in the component manager.source
- the source where to produce XML from (e.g. xml file), or
null
if no source is given.param
- the parameters for the generator.e
- the exception to generate.- Throws:
java.lang.Exception
- if the generator couldn't be obtained.- See Also:
ErrorNotifier
setGenerator
public void setGenerator(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param)
throws java.lang.Exception
- Description copied from interface:
EventPipeline
- Set the generator that will be used as the initial step in the pipeline.
The generator role is given : the actual
Generator
is fetched
from the latest ComponentManager
given by compose()
or recompose()
.
- Overrides:
setGenerator
in class AbstractEventPipeline
- Following copied from interface:
org.apache.cocoon.components.pipeline.EventPipeline
- Parameters:
role
- the generator role in the component manager.source
- the source where to produce XML from, or null
if no
source is given.param
- the parameters for the generator.- Throws:
java.lang.Exception
- if the generator couldn't be obtained.
addTransformer
public void addTransformer(java.lang.String role,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters param)
throws java.lang.Exception
- Description copied from interface:
EventPipeline
- Add a transformer at the end of the pipeline.
The transformer role is given : the actual
Transformer
is fetched
from the latest ComponentManager
given by compose()
or recompose()
.
- Overrides:
addTransformer
in class AbstractEventPipeline
- Following copied from interface:
org.apache.cocoon.components.pipeline.EventPipeline
- Parameters:
role
- the transformer role in the component manager.source
- the source used to setup the transformer (e.g. XSL file), or
null
if no source is given.param
- the parameters for the transfomer.- Throws:
java.lang.Exception
- if the generator couldn't be obtained.
process
public boolean process(Environment environment)
throws java.lang.Exception
- Description copied from interface:
EventPipeline
- Process the given
Environment
, producing the output.
- Overrides:
process
in class AbstractEventPipeline
recycle
public void recycle()
- Description copied from class:
AbstractXMLProducer
- Recycle the producer by removing references
- Specified by:
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
- Overrides:
recycle
in class NonCachingEventPipeline
Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.