org.apache.camel.processor
Class DelegateProcessor

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.DelegateProcessor
All Implemented Interfaces:
Processor, Service

public class DelegateProcessor
extends ServiceSupport
implements Processor

A Delegate pattern which delegates processing to a nested processor which can be useful for implementation inheritence when writing an Policy

Version:
$Revision: 519941 $

Field Summary
protected  Processor next
           
 
Constructor Summary
DelegateProcessor()
           
DelegateProcessor(Processor next)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Processor getNext()
           
 void process(Exchange exchange)
          Processes the message exchange
protected  void processNext(Exchange exchange)
           
 void setNext(Processor next)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
isStarted, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

next

protected Processor next
Constructor Detail

DelegateProcessor

public DelegateProcessor()

DelegateProcessor

public DelegateProcessor(Processor next)
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Throws:
Exception - if an internal processing error has occurred.

processNext

protected void processNext(Exchange exchange)
                    throws Exception
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

getNext

public Processor getNext()

setNext

public void setNext(Processor next)

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class ServiceSupport
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.