org.apache.camel.spi
Interface LifecycleStrategy

All Known Implementing Classes:
DefaultLifecycleStrategy, DelegateLifecycleStrategy, InstrumentationLifecycleStrategy

public interface LifecycleStrategy

Strategy for lifecycle notifications.


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.
 

Method Detail

onContextStart

void onContextStart(CamelContext context)
Notification on starting a CamelContext.

Parameters:
context - the camel context

onEndpointAdd

void onEndpointAdd(Endpoint endpoint)
Notification on adding an Endpoint.

Parameters:
endpoint - the added endpoint

onServiceAdd

void onServiceAdd(CamelContext context,
                  Service service)
Notification on adding a Service.

Parameters:
context - the camel context
service - the added service

onRoutesAdd

void onRoutesAdd(Collection<Route> routes)
Notification on adding Route(s).

Parameters:
routes - the added routes

onRouteContextCreate

void onRouteContextCreate(RouteContext routeContext)
Notification on adding RouteContext(s).

Parameters:
routeContext - the added route context


Copyright © 2009 Apache Software Foundation. All Rights Reserved.