com.day.cq.rewriter.processor.impl
Class ProcessorWrapper

java.lang.Object
  extended by com.day.cq.rewriter.processor.impl.ProcessorWrapper
All Implemented Interfaces:
Processor

public class ProcessorWrapper
extends Object
implements Processor

This is a wrapper for a processor.


Constructor Summary
ProcessorWrapper(ProcessingContext context, ProcessorConfiguration config, org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 void finished()
          Clean up the processor.
 ContentHandler getContentHandler()
          Get the content handler to write the output to.
 PrintWriter getWriter()
          Get the writer to write the output to.
 void init(ProcessingContext context, ProcessorConfiguration config)
          Initialize this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorWrapper

public ProcessorWrapper(ProcessingContext context,
                        ProcessorConfiguration config,
                        org.osgi.framework.BundleContext bundleContext)
                 throws IOException
Throws:
IOException
Method Detail

finished

public void finished()
              throws IOException
Description copied from interface: Processor
Clean up the processor. This method should always be called after a processor run, regardless if it was successfull or failed.

Specified by:
finished in interface Processor
Throws:
IOException
See Also:
Processor.finished()

getWriter

public PrintWriter getWriter()
Description copied from interface: Processor
Get the writer to write the output to.

Specified by:
getWriter in interface Processor
Returns:
A print writer.
See Also:
Processor.getWriter()

getContentHandler

public ContentHandler getContentHandler()
Description copied from interface: Processor
Get the content handler to write the output to.

Specified by:
getContentHandler in interface Processor
Returns:
A content handler
See Also:
Processor.getContentHandler()

init

public void init(ProcessingContext context,
                 ProcessorConfiguration config)
          throws IOException
Description copied from interface: Processor
Initialize this component.

Specified by:
init in interface Processor
Parameters:
context - The invocation context.
config - The configuration for this component.
Throws:
IOException
See Also:
Processor.init(com.day.cq.rewriter.processor.ProcessingContext, com.day.cq.rewriter.processor.ProcessorConfiguration)


Copyright © 2008 Day Management AG. All Rights Reserved.