org.apache.cocoon.generation
Class ScriptGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.apache.cocoon.generation.ScriptGenerator
- All Implemented Interfaces:
- Poolable, Recyclable, Disposable, Component, Configurable, LogEnabled, Serviceable, Generator, SitemapModelComponent, XMLProducer
public class ScriptGenerator
- extends ServiceableGenerator
- implements Configurable
The Scriptgenerator executes arbitraty scripts using the BSF framework
and additional interpreter (Rhino, Groovy, Jython, etc.) as a
Cocoon Generator.
Additional language support can be added during configuration, eg
using:
<add-languages>
<language name="potatoscript" src="edu.purdue.cs.bsf.engines.Potatoscript">
<extension>pos</extension>
<extension>psc</extension>
<language>
<language name="kawa-scheme" src="org.gnu.kawa.bsf.engines.KawaEngine">
<extension>scm</extension>
<language>
</add-languages>
- Version:
- CVS $Id: ScriptGenerator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Jason Foster
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
additionalLanguages
protected ScriptGenerator.BSFLanguage[] additionalLanguages
ScriptGenerator
public ScriptGenerator()
configure
public void configure(Configuration conf)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
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 AbstractGenerator
generate
public void generate()
throws ProcessingException
- Description copied from interface:
Generator
- Generate the XML and stream it into the pipeline
- Specified by:
generate
in interface Generator
- Throws:
ProcessingException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.