org.apache.camel.impl
Class DelegateLifecycleStrategy

java.lang.Object
  extended by org.apache.camel.impl.DelegateLifecycleStrategy
All Implemented Interfaces:
LifecycleStrategy

public class DelegateLifecycleStrategy
extends Object
implements LifecycleStrategy

A helper class for folks writing delegate listener strategies

Version:
$Revision: 751221 $

Constructor Summary
DelegateLifecycleStrategy(LifecycleStrategy delegate)
           
 
Method Summary
 void onContextStart(CamelContext context)
          Notification on starting a CamelContext.
 void onEndpointAdd(Endpoint endpoint)
          Notification on adding an Endpoint.
 void onRouteContextCreate(RouteContext routeContext)
          Notification on adding RouteContext(s).
 void onRoutesAdd(Collection<Route> routes)
          Notification on adding Route(s).
 void onServiceAdd(CamelContext context, Service service)
          Notification on adding a Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateLifecycleStrategy

public DelegateLifecycleStrategy(LifecycleStrategy delegate)
Method Detail

onContextStart

public void onContextStart(CamelContext context)
Description copied from interface: LifecycleStrategy
Notification on starting a CamelContext.

Specified by:
onContextStart in interface LifecycleStrategy
Parameters:
context - the camel context

onEndpointAdd

public void onEndpointAdd(Endpoint endpoint)
Description copied from interface: LifecycleStrategy
Notification on adding an Endpoint.

Specified by:
onEndpointAdd in interface LifecycleStrategy
Parameters:
endpoint - the added endpoint

onRouteContextCreate

public void onRouteContextCreate(RouteContext routeContext)
Description copied from interface: LifecycleStrategy
Notification on adding RouteContext(s).

Specified by:
onRouteContextCreate in interface LifecycleStrategy
Parameters:
routeContext - the added route context

onRoutesAdd

public void onRoutesAdd(Collection<Route> routes)
Description copied from interface: LifecycleStrategy
Notification on adding Route(s).

Specified by:
onRoutesAdd in interface LifecycleStrategy
Parameters:
routes - the added routes

onServiceAdd

public void onServiceAdd(CamelContext context,
                         Service service)
Description copied from interface: LifecycleStrategy
Notification on adding a Service.

Specified by:
onServiceAdd in interface LifecycleStrategy
Parameters:
context - the camel context
service - the added service


Apache CAMEL