org.apache.cocoon
Class ProcessorWrapper
java.lang.Object
|
+--org.apache.cocoon.ProcessorWrapper
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Disposable, Processor, org.apache.avalon.framework.thread.ThreadSafe
- public final class ProcessorWrapper
- extends java.lang.Object
- implements Processor, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.thread.ThreadSafe
This class is a wrapper around the real processor (the Cocoon
class).
It is necessary to avoid infinite dispose loops
- Version:
- CVS $Id: ProcessorWrapper.java,v 1.6 2002/02/22 07:03:48 cziegeler Exp $
- Author:
- Carsten Ziegeler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessorWrapper
public ProcessorWrapper(Processor processor)
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
process
public boolean process(Environment environment)
throws java.lang.Exception
- Process the given
Environment
producing the output
- Specified by:
process
in interface Processor
- Following copied from interface:
org.apache.cocoon.Processor
- Returns:
- If the processing is successfull
true
is returned.
If not match is found in the sitemap false
is returned. - Throws:
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
process
public boolean process(Environment environment,
StreamPipeline pipeline,
EventPipeline eventPipeline)
throws java.lang.Exception
- Process the given
Environment
to assemble
a StreamPipeline
and an EventPipeline
.
- Specified by:
process
in interface Processor
Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.