org.apache.cocoon.components.language.markup.xsp
Class PythonGenerator

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.generation.AbstractGenerator
              extended by org.apache.cocoon.generation.ComposerGenerator
                  extended by org.apache.cocoon.generation.ServletGenerator
                      extended by org.apache.cocoon.generation.AbstractServerPage
                          extended by org.apache.cocoon.components.language.markup.xsp.XSPGenerator
                              extended by org.apache.cocoon.components.language.markup.xsp.PythonGenerator
All Implemented Interfaces:
Poolable, Recyclable, Disposable, Initializable, Component, Composable, Recomposable, Configurable, Contextualizable, LogEnabled, Cacheable, CacheableProcessingComponent, CompiledComponent, Generator, Modifiable, SitemapModelComponent, XMLProducer

public class PythonGenerator
extends XSPGenerator
implements Configurable, Initializable

Class representing interpreted XSP-generated ServerPagesGenerator programs written in Python language

Version:
CVS $Id: PythonGenerator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

Field Summary
 
Fields inherited from class org.apache.cocoon.components.language.markup.xsp.XSPGenerator
avalonContext
 
Fields inherited from class org.apache.cocoon.generation.AbstractServerPage
dateCreated, dependencies
 
Fields inherited from class org.apache.cocoon.generation.ServletGenerator
context, request, response
 
Fields inherited from class org.apache.cocoon.generation.ComposerGenerator
manager
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
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
PythonGenerator()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
          Release all resources.
 void generate()
          Generate the XML and stream it into the pipeline
 void initialize()
           
 boolean modifiedSince(long date)
          Determines whether this generator's source files have changed
 void recycle()
          Recycle the generator by removing references
 void setup(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.components.language.markup.xsp.XSPGenerator
compose, contextualize, xspCharacters, xspComment, xspExpr
 
Methods inherited from class org.apache.cocoon.generation.AbstractServerPage
attribute, characters, comment, end, generateKey, generateValidity, getKey, getValidity, hasContentChanged, recompose, start
 
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
 

Constructor Detail

PythonGenerator

public PythonGenerator()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

modifiedSince

public boolean modifiedSince(long date)
Determines whether this generator's source files have changed

Specified by:
modifiedSince in interface Modifiable
Overrides:
modifiedSince in class AbstractServerPage
Returns:
Whether any of the files this generator depends on has changed since it was created

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Throws:
Exception

setup

public void setup(SourceResolver resolver,
                  Map objectModel,
                  String src,
                  Parameters par)
           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 ServletGenerator
Throws:
ProcessingException
SAXException
IOException

generate

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

Specified by:
generate in interface Generator
Throws:
IOException
ProcessingException

recycle

public void recycle()
Description copied from class: AbstractGenerator
Recycle the generator by removing references

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

dispose

public void dispose()
Description copied from class: ComposerGenerator
Release all resources.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class ComposerGenerator


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.