org.apache.cocoon.generation
Class GarbageGenerator

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.generation.AbstractGenerator
              extended byorg.apache.cocoon.generation.ServiceableGenerator
                  extended byorg.apache.cocoon.generation.GarbageGenerator
All Implemented Interfaces:
Disposable, Generator, LogEnabled, Poolable, Recyclable, Serviceable, SitemapModelComponent, XMLProducer

public class GarbageGenerator
extends ServiceableGenerator


Nested Class Summary
protected static class GarbageGenerator.CacheEntry
           
 
Field Summary
protected static Map cache
           
protected  org.apache.commons.jxpath.JXPathContext jxpathContext
           
protected  Source source
           
 
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
GarbageGenerator()
           
 
Method Summary
 void generate()
          Generate the XML and stream it into the pipeline
 void recycle()
          Recyclable
protected  void setContext(Object contextObject, Object kont, Object request, Object response, Object session, Object context, Parameters parameters)
           
 void setup(SourceResolver resolver, Map objectModel, String src, Parameters parameters)
          Set the SourceResolver, object model Map, the source and sitemap Parameters used to process the request.
 
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose, service
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
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.xml.XMLProducer
setConsumer
 

Field Detail

cache

protected static Map cache

jxpathContext

protected org.apache.commons.jxpath.JXPathContext jxpathContext

source

protected Source source
Constructor Detail

GarbageGenerator

public GarbageGenerator()
Method Detail

recycle

public void recycle()
Recyclable

Specified by:
recycle in interface Recyclable
Overrides:
recycle in class AbstractGenerator

setup

public void setup(SourceResolver resolver,
                  Map objectModel,
                  String src,
                  Parameters parameters)
           throws ProcessingException,
                  SAXException,
                  IOException
Description copied from class: AbstractGenerator
Set the SourceResolver, object model Map, the source and sitemap Parameters used to process the request.

Specified by:
setup in interface SitemapModelComponent
Overrides:
setup in class AbstractGenerator
Throws:
ProcessingException
SAXException
IOException

setContext

protected void setContext(Object contextObject,
                          Object kont,
                          Object request,
                          Object response,
                          Object session,
                          Object context,
                          Parameters parameters)

generate

public void generate()
              throws IOException,
                     SAXException,
                     ProcessingException
Description copied from interface: Generator
Generate the XML and stream it into the pipeline

Throws:
IOException
SAXException
ProcessingException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.