This project has retired. For details please refer to its
Attic page .
AbstractGenerator (Cocoon Pipeline Implementation 1.0.0 API)
org.apache.cocoon.generation
Class AbstractGenerator
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
All Implemented Interfaces: org.apache.cocoon.generation.Generator, Poolable , Recyclable , org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.xml.XMLProducer
Direct Known Subclasses: ServiceableGenerator , ServletGenerator
public abstract class AbstractGenerator extends AbstractXMLProducer implements org.apache.cocoon.generation.Generator
An abstract class that can be used to implement an own generator.
If you need other components, use the ServiceableGenerator
instead.
Version:
$Id: AbstractGenerator.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Field Summary
protected Map
objectModel
The current Map objectModel.
protected Parameters
parameters
The current Parameters.
protected org.apache.cocoon.environment.SourceResolver
resolver
The current SourceResolver.
protected String
source
The source URI associated with the request or null .
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
Method Summary
void
recycle ()
Recycle the generator by removing references
void
setup (org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver, object model Map,
the source and sitemap Parameters used to process the request.
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Methods inherited from interface org.apache.cocoon.generation.Generator
generate
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
resolver
protected org.apache.cocoon.environment.SourceResolver resolver
The current SourceResolver.
objectModel
protected Map objectModel
The current Map objectModel.
parameters
protected Parameters parameters
The current Parameters.
source
protected String source
The source URI associated with the request or null .
AbstractGenerator
public AbstractGenerator ()
setup
public void setup (org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws org.apache.cocoon.ProcessingException,
SAXException ,
IOException
Set the SourceResolver, object model Map,
the source and sitemap Parameters used to process the request.
Specified by: setup in interface org.apache.cocoon.sitemap.SitemapModelComponent
Throws:
org.apache.cocoon.ProcessingException
SAXException
IOException
recycle
public void recycle ()
Recycle the generator by removing references
Specified by: recycle in interface Recyclable Overrides: recycle in class AbstractXMLProducer
Copyright © 1999-2008 The Apache Software Foundation . All Rights Reserved.