|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.ant.CocoonTask.CocoonFactory
A factory creating Cocoon objects. This class encapsulates creation, disposing of Cocoon objects, and creating of classes for using Cocoon in some task, subtask execution
| Constructor Summary | |
CocoonTask.CocoonFactory()
Constructor for the CocoonFactory object |
|
| Method Summary | |
void |
configure(Configuration configuration)
Configure the Cocoon factory |
void |
contextualize(Context context)
contextualize the CocoonFactory Expecting at least following context entries context-root CONTEXT_CLASSPATH CONTEXT_CLASS_LOADER CONTEXT_ENVIRONMENT_CONTEXT CONTEXT_WORK_DIR CONTEXT_CONFIG_URL |
Cocoon |
createCocoon()
create a new Cocoon instance |
CocoonProcessorDelegate |
createCocoonProcessorDelegate(Cocoon cocoon,
Configuration configuration)
Create a CocoonProcessorDelegate for performing some Cocoon relevant operations. |
void |
disposeCocoon(Cocoon cocoon)
Dispose a cocoon instance. |
protected String |
getClassPath(File contextDir)
This builds the important ClassPath used by this class. |
| 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 |
| Constructor Detail |
public CocoonTask.CocoonFactory()
| Method Detail |
public void contextualize(Context context)
throws ContextException
contextualize in interface Contextualizablecontext - parent context
ContextException - thrown if parent context fails to provide
mandadory context entries
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfiguration - Cocoon factory configuration
ConfigurationException - thrown if configuration fails
public Cocoon createCocoon()
throws Exception,
ContextException,
ConfigurationException
ContextException - thrown if configuring of Cocoon instance fails
ConfigurationException - thrown if contextualizing of Cocoon instance fails
Exception - thrown if initializing of Cocoon instance failspublic void disposeCocoon(Cocoon cocoon)
createCocoon().
cocoon - the Cocoon instance
public CocoonProcessorDelegate createCocoonProcessorDelegate(Cocoon cocoon,
Configuration configuration)
throws Exception
cocoon - Cocoon instanceconfiguration - of the CocoonProcessorDelegate
Exception - thrown if contextualizing, configuring, or creating
of CocoonProcessorDelegate instance fails.protected String getClassPath(File contextDir)
contextDir - Description of Parameter
String value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||