org.apache.camel.processor
Class LifecycleProcessor

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

public class LifecycleProcessor
extends DelegateProcessor

A simple helper class which allows you to attach an artbirary service to a processor which is started before the processor and closed after it

Version:
$Revision: 1.1 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
next
 
Constructor Summary
LifecycleProcessor(Processor next, Service service)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 
Methods inherited from class org.apache.camel.processor.DelegateProcessor
getNext, process, processNext, setNext, 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
 

Constructor Detail

LifecycleProcessor

public LifecycleProcessor(Processor next,
                          Service service)
Method Detail

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DelegateProcessor
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DelegateProcessor
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.