org.apache.cocoon.pipeline.component
Interface PipelineComponent

All Known Subinterfaces:
Finisher, Producer, Starter, XMLProducer
All Known Implementing Classes:
AbstractGenerator, AbstractPipelineComponent, AbstractSerializer, AbstractTransformer, AbstractXMLProducer, CleaningTransformer, ExceptionGenerator, FileGenerator, FileReaderComponent, IncludeTransformer, RedirectorComponent, RequestParametersGenerator, ServiceConsumerGenerator, ServletServiceGenerator, ServletServiceSerializer, ServletServiceTransformer, SpringControllerComponent, StringGenerator, StringTemplateGenerator, XMLSerializer, XSLTTransformer

public interface PipelineComponent

This is a component used in a pipeline. If the environment has some configuration for this component setConfiguration(Map) is called as the first step. After the component has been added to pipeline, setup(Map) is called before the pipeline is executed. When the pipeline is finished or if any error occurred finish(java.lang.Exception) is called.


Method Summary
 void finish(Exception exception)
          This method is called after pipeline run - regardless if the run was successful or an exception was thrown.
 void setConfiguration(Map<String,? extends Object> configuration)
           
 void setup(Map<String,Object> parameters)
          The shared object map for this pipeline run.
 

Method Detail

setConfiguration

void setConfiguration(Map<String,? extends Object> configuration)

setup

void setup(Map<String,Object> parameters)
The shared object map for this pipeline run.

Parameters:
parameters - A Map of parameters that are available to all PipelineComponents. This is a modifiable map that can be changed by this pipeline component.

finish

void finish(Exception exception)
This method is called after pipeline run - regardless if the run was successful or an exception was thrown.



Copyright © 2008 The Apache Software Foundation. All Rights Reserved.