|
|||||||||||
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.components.treeprocessor.TreeProcessor
Interpreted tree-traversal implementation of a pipeline assembly language.
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.Processor |
Processor.InternalPipelineDescription |
Field Summary | |
protected boolean |
checkReload
Check for reload? |
protected ConcreteTreeProcessor |
concreteProcessor
The actual processor |
protected Context |
context
The context |
protected Core |
core
The core object. |
protected SitemapMonitor |
fam
|
protected long |
lastModified
Last modification time |
protected long |
lastModifiedDelay
Delay for sourceLastModified . |
protected ServiceManager |
manager
The component manager given by the upper level (root manager or parent concrete processor) |
protected TreeProcessor |
parent
The parent TreeProcessor, if any |
protected SourceResolver |
resolver
The source resolver |
protected DelayedRefreshSourceWrapper |
source
The source of the tree definition |
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
|
TreeProcessor()
Create a TreeProcessor. |
protected |
TreeProcessor(TreeProcessor parent,
DelayedRefreshSourceWrapper sitemapSource,
boolean checkReload,
String prefix)
Create a child processor for a given language |
Method Summary | |
Processor.InternalPipelineDescription |
buildPipeline(Environment environment)
Process the given Environment to assemble
a ProcessingPipeline . |
void |
configure(Configuration config)
Configure the tree processor: <processor file="{Location of the sitemap}" check-reload="{true|false}" config="{Location of sitemap tree processor config}> <reload delay="10"/> </processor> Only the file attribute is required; everything else is optional. |
void |
contextualize(Context context)
|
TreeProcessor |
createChildProcessor(String src,
boolean checkReload,
String prefix)
Create a new child of this processor (used for mounting submaps). |
protected ClassLoader |
createClassLoader(Configuration classpathConfig)
|
void |
dispose()
|
Object |
getAttribute(String name)
Gets an attribute |
Configuration[] |
getComponentConfigurations()
Get the sitemap component configurations |
String |
getContext()
Get the context URI for this processor |
EnvironmentHelper |
getEnvironmentHelper()
The current environment helper used by the MountNode |
Processor |
getRootProcessor()
Get the root processor parent of this processor. |
SourceResolver |
getSourceResolver()
Get the source resolver for this processor |
void |
initialize()
|
boolean |
process(Environment environment)
Process the given Environment producing the output. |
Object |
removeAttribute(String name)
Remove an attribute. |
void |
service(ServiceManager manager)
|
void |
setAttribute(String name,
Object value)
Sets an attribute |
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 |
Field Detail |
protected TreeProcessor parent
protected Context context
protected ServiceManager manager
protected Core core
protected long lastModified
protected DelayedRefreshSourceWrapper source
protected long lastModifiedDelay
sourceLastModified
.
protected boolean checkReload
protected SitemapMonitor fam
protected SourceResolver resolver
protected ConcreteTreeProcessor concreteProcessor
Constructor Detail |
public TreeProcessor()
protected TreeProcessor(TreeProcessor parent, DelayedRefreshSourceWrapper sitemapSource, boolean checkReload, String prefix) throws Exception
Method Detail |
public TreeProcessor createChildProcessor(String src, boolean checkReload, String prefix) throws Exception
Exception
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.initialize()
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
public boolean process(Environment environment) throws Exception
Environment
producing the output.
process
in interface 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 reset
Exception
public Processor.InternalPipelineDescription buildPipeline(Environment environment) throws Exception
Environment
to assemble
a ProcessingPipeline
.
buildPipeline
in interface Processor
Exception
public Processor getRootProcessor()
Processor
getRootProcessor
in interface Processor
public Configuration[] getComponentConfigurations()
Processor
getComponentConfigurations
in interface Processor
public String getContext()
Processor
getContext
in interface Processor
public SourceResolver getSourceResolver()
Processor
getSourceResolver
in interface Processor
public EnvironmentHelper getEnvironmentHelper()
protected ClassLoader createClassLoader(Configuration classpathConfig) throws Exception
Exception
public void dispose()
dispose
in interface Disposable
public Object getAttribute(String name)
Processor
getAttribute
in interface Processor
Processor.getAttribute(java.lang.String)
public Object removeAttribute(String name)
Processor
removeAttribute
in interface Processor
Processor.removeAttribute(java.lang.String)
public void setAttribute(String name, Object value)
Processor
setAttribute
in interface Processor
Processor.setAttribute(java.lang.String, java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |