|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.treeprocessor.TreeProcessor
Interpreted tree-traversal implementation of a pipeline assembly language.
Field Summary | |
protected ExtendedComponentSelector |
builderSelector
Selector of TreeBuilders, the hint is the language name |
protected org.apache.avalon.framework.context.Context |
context
The context |
protected org.apache.avalon.framework.configuration.Configuration |
currentLanguage
The current language configuration |
protected java.util.List |
disposableNodes
The list of processing nodes that should be disposed when disposing this processor |
protected java.lang.String |
language
The language used by this processor |
protected long |
lastModified
Last modification time |
protected long |
lastModifiedDelay
Delay for sourceLastModified . |
protected org.apache.avalon.excalibur.logger.LogKitManager |
logKit
The logkit manager to get Loggers |
protected org.apache.avalon.framework.component.ComponentManager |
manager
The component manager |
protected TreeProcessor |
parent
The parent TreeProcessor, if any |
protected org.apache.avalon.excalibur.component.RoleManager |
roleManager
The role manager |
protected ProcessingNode |
rootNode
The root node of the processing tree |
protected Source |
source
The source of the tree definition |
protected SourceHandler |
sourceHandler
|
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
|
TreeProcessor()
Create a TreeProcessor. |
protected |
TreeProcessor(TreeProcessor parent,
org.apache.avalon.framework.component.ComponentManager manager,
java.lang.String language)
Create a child processor for a given language |
Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
|
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
TreeProcessor |
createChildProcessor(org.apache.avalon.framework.component.ComponentManager manager,
java.lang.String language,
Source source)
Create a new child of this processor (used for mounting submaps). |
void |
dispose()
|
protected void |
disposeTree()
Dispose all nodes in the tree that are disposable |
void |
initialize()
|
boolean |
process(Environment environment)
Process the given Environment producing the output. |
protected boolean |
process(Environment environment,
InvokeContext context)
|
boolean |
process(Environment environment,
StreamPipeline pipeline,
EventPipeline eventPipeline)
Process the given Environment to assemble
a StreamPipeline and an EventPipeline . |
void |
setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logKit)
|
void |
setRoleManager(org.apache.avalon.excalibur.component.RoleManager rm)
|
protected void |
setupRootNode(Environment env)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TreeProcessor parent
protected org.apache.avalon.framework.context.Context context
protected org.apache.avalon.framework.component.ComponentManager manager
protected org.apache.avalon.excalibur.logger.LogKitManager logKit
protected org.apache.avalon.excalibur.component.RoleManager roleManager
protected java.lang.String language
protected ExtendedComponentSelector builderSelector
protected ProcessingNode rootNode
protected java.util.List disposableNodes
protected long lastModified
protected Source source
protected long lastModifiedDelay
sourceLastModified
.protected org.apache.avalon.framework.configuration.Configuration currentLanguage
protected SourceHandler sourceHandler
Constructor Detail |
public TreeProcessor()
protected TreeProcessor(TreeProcessor parent, org.apache.avalon.framework.component.ComponentManager manager, java.lang.String language)
Method Detail |
public TreeProcessor createChildProcessor(org.apache.avalon.framework.component.ComponentManager manager, java.lang.String language, Source source) throws java.lang.Exception
manager
- the component manager to be used by the child processor.language
- the language to be used by the child processor.public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
public void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
public void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logKit)
setLogKitManager
in interface org.apache.avalon.excalibur.logger.LogKitManageable
public void setRoleManager(org.apache.avalon.excalibur.component.RoleManager rm)
setRoleManager
in interface org.apache.avalon.excalibur.component.RoleManageable
public void configure(org.apache.avalon.framework.configuration.Configuration config) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
public boolean process(Environment environment) throws java.lang.Exception
Processor
Environment
producing the output.process
in interface Processor
org.apache.cocoon.Processor
true
is returned.
If not match is found in the sitemap false
is returned.ResourceNotFoundException
- If a sitemap component tries
to access a resource which can not
be found, e.g. the generator
ConnectionResetException If the connection was resetpublic boolean process(Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline) throws java.lang.Exception
Processor
Environment
to assemble
a StreamPipeline
and an EventPipeline
.process
in interface Processor
protected boolean process(Environment environment, InvokeContext context) throws java.lang.Exception
protected void setupRootNode(Environment env) throws java.lang.Exception
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
protected void disposeTree()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |