org.apache.cocoon.components.language.markup.xsp
Class PythonGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ComposerGenerator
org.apache.cocoon.generation.ServletGenerator
org.apache.cocoon.generation.AbstractServerPage
org.apache.cocoon.components.language.markup.xsp.XSPGenerator
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
| Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
| Methods inherited from class org.apache.cocoon.generation.AbstractServerPage |
attribute, characters, comment, end, generateKey, generateValidity, getKey, getValidity, hasContentChanged, recompose, start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PythonGenerator
public PythonGenerator()
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.