org.apache.camel.processor
Class LifecycleProcessor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
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 $
LifecycleProcessor
public LifecycleProcessor(Processor next,
Service service)
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.