|
||||||||||
| 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.Cocoon
public class Cocoon
The Cocoon Object is the main Kernel for the entire Cocoon system.
| Field Summary | |
|---|---|
protected RequestListener |
requestListener
An optional Avalon Component that is called before and after processing all requests. |
protected SourceResolver |
sourceResolver
The source resolver |
| Fields inherited from interface org.apache.cocoon.Processor |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Cocoon()
Creates a new Cocoon instance. |
|
| Method Summary | |
|---|---|
ProcessingPipeline |
buildPipeline(Environment environment)
Process the given Environment to assemble
a ProcessingPipeline. |
void |
compose(ComponentManager manager)
Get the parent component manager. |
void |
configure(ExcaliburComponentManager startupManager)
Configure this Cocoon instance. |
void |
contextualize(Context context)
Describe contextualize method here. |
protected SourceResolver |
createSourceResolver(Logger logger)
Create a simple source resolver. |
protected void |
debug(Environment environment,
boolean internal)
Log debug information about the current environment. |
void |
dispose()
Dispose this instance |
void |
enableLogging(Logger logger)
|
int |
getActiveRequestCount()
Accessor for active request count |
Map |
getComponentConfigurations()
Get the sitemap component configurations |
ExcaliburComponentManager |
getComponentManager()
|
Processor |
getRootProcessor()
Return this (Cocoon is always at the root of the processing chain). |
static String |
getSystemProperty(String property,
String value)
Helper method to retrieve system property. |
void |
initialize()
The initialize method |
boolean |
modifiedSince(long date)
Queries the class to estimate its ergodic period termination. |
boolean |
process(Environment environment)
Process the given Environment to produce the output. |
void |
setInstrumentManager(InstrumentManager manager)
Set the InstrumentManager for this Cocoon instance. |
void |
setLoggerManager(LoggerManager loggerManager)
The setLoggerManager method will get a LoggerManager
for further use. |
protected void |
setSystemProperties()
Sets required system properties. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SourceResolver sourceResolver
protected RequestListener requestListener
| Constructor Detail |
|---|
public Cocoon()
throws ConfigurationException
Cocoon instance.
ConfigurationException - if an error occurs| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledenableLogging in class AbstractLogEnabled
public void compose(ComponentManager manager)
throws ComponentException
compose in interface Composablemanager - the parent component manager. May be null
ComponentException
public void contextualize(Context context)
throws ContextException
contextualize method here.
contextualize in interface Contextualizablecontext - a Context value
ContextException - if an error occurspublic void setLoggerManager(LoggerManager loggerManager)
setLoggerManager method will get a LoggerManager
for further use.
loggerManager - a LoggerManager valuepublic void setInstrumentManager(InstrumentManager manager)
InstrumentManager for this Cocoon instance.
setInstrumentManager in interface InstrumentManageablemanager - an InstrumentManager instance
public void initialize()
throws Exception
initialize method
initialize in interface InitializableException - if an error occurs
public void configure(ExcaliburComponentManager startupManager)
throws ConfigurationException,
ContextException
Cocoon instance.
startupManager - an ExcaliburComponentManager value
ConfigurationException - if an error occurs
ContextException - if an error occurspublic boolean modifiedSince(long date)
modifiedSince in interface Modifiabledate - a long value
boolean value
public static String getSystemProperty(String property,
String value)
protected void setSystemProperties()
public void dispose()
dispose in interface Disposable
protected void debug(Environment environment,
boolean internal)
environment - an Environment value
public boolean process(Environment environment)
throws Exception
Environment to produce the output.
process in interface Processorenvironment - an Environment value
boolean value
Exception - if an error occurs
public ProcessingPipeline buildPipeline(Environment environment)
throws Exception
Environment to assemble
a ProcessingPipeline.
buildPipeline in interface ProcessorExceptionpublic Map getComponentConfigurations()
getComponentConfigurations in interface Processorpublic Processor getRootProcessor()
getRootProcessor in interface Processorpublic int getActiveRequestCount()
public ExcaliburComponentManager getComponentManager()
protected SourceResolver createSourceResolver(Logger logger)
throws ContextException
ContextException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||