public interface LifecycleStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
onComponentAdd(String name,
Component component)
Notification on adding an
Component. |
void |
onComponentRemove(String name,
Component component)
Notification on removing an
Component. |
default void |
onContextInitialized(CamelContext context)
Notification on initialized
CamelContext. |
default void |
onContextInitializing(CamelContext context)
Notification on initializing a
CamelContext. |
default void |
onContextStart(CamelContext context)
Deprecated.
|
default void |
onContextStarted(CamelContext context)
Notification on started
CamelContext. |
default void |
onContextStarting(CamelContext context)
Notification on starting a
CamelContext. |
default void |
onContextStop(CamelContext context)
Deprecated.
|
default void |
onContextStopped(CamelContext context)
Notification on stopped
CamelContext. |
default void |
onContextStopping(CamelContext context)
Notification on stopping a
CamelContext. |
default void |
onDataFormatCreated(String name,
DataFormat dataFormat)
Notification on
DataFormat being resolved from the Registry |
void |
onEndpointAdd(Endpoint endpoint)
Notification on adding an
Endpoint. |
void |
onEndpointRemove(Endpoint endpoint)
Notification on removing an
Endpoint. |
default void |
onLanguageCreated(String name,
Language language)
Notification on a
Language instance being resolved. |
void |
onRouteContextCreate(Route route)
Notification on creating
Route(s). |
void |
onRoutesAdd(Collection<Route> routes)
Notification on adding
Route(s). |
void |
onRoutesRemove(Collection<Route> routes)
Notification on removing
Route(s). |
void |
onServiceAdd(CamelContext context,
Service service,
Route route)
Notification on adding a
Service. |
void |
onServiceRemove(CamelContext context,
Service service,
Route route)
Notification on removing a
Service. |
void |
onThreadPoolAdd(CamelContext camelContext,
ThreadPoolExecutor threadPool,
String id,
String sourceId,
String routeId,
String threadPoolProfileId)
Notification on adding a thread pool.
|
void |
onThreadPoolRemove(CamelContext camelContext,
ThreadPoolExecutor threadPool)
Notification on removing a thread pool.
|
default void onContextInitializing(CamelContext context) throws VetoCamelContextStartException
CamelContext.context - the camel contextVetoCamelContextStartException - can be thrown to veto starting CamelContext. Any other runtime
exceptions will be logged at WARN level by Camel will continue
starting itself.default void onContextInitialized(CamelContext context) throws VetoCamelContextStartException
CamelContext.context - the camel contextVetoCamelContextStartException - can be thrown to veto starting CamelContext. Any other runtime
exceptions will be logged at WARN level by Camel will continue
starting itself.@Deprecated default void onContextStart(CamelContext context) throws VetoCamelContextStartException
onContextStarting(CamelContext).CamelContext.context - the camel contextVetoCamelContextStartException - can be thrown to veto starting CamelContext. Any other runtime
exceptions will be logged at WARN level by Camel will
continue starting itself. *default void onContextStarting(CamelContext context) throws VetoCamelContextStartException
CamelContext.context - the camel contextVetoCamelContextStartException - can be thrown to veto starting CamelContext. Any other runtime
exceptions will be logged at WARN level by Camel will continue
starting itself.default void onContextStarted(CamelContext context)
CamelContext.context - the camel context@Deprecated default void onContextStop(CamelContext context)
onContextStopping(CamelContext).CamelContext.context - the camel contextdefault void onContextStopping(CamelContext context)
CamelContext.context - the camel contextdefault void onContextStopped(CamelContext context)
CamelContext.context - the camel contextvoid onComponentAdd(String name, Component component)
Component.name - the unique name of this componentcomponent - the added componentvoid onComponentRemove(String name, Component component)
Component.name - the unique name of this componentcomponent - the removed componentvoid onEndpointAdd(Endpoint endpoint)
Endpoint.endpoint - the added endpointvoid onEndpointRemove(Endpoint endpoint)
Endpoint.endpoint - the removed endpointdefault void onDataFormatCreated(String name, DataFormat dataFormat)
DataFormat being resolved from the Registryname - the unique name of the DataFormatdataFormat - the resolved DataFormatdefault void onLanguageCreated(String name, Language language)
Language instance being resolved.void onServiceAdd(CamelContext context, Service service, Route route)
Service.context - the camel contextservice - the added serviceroute - the route the service belongs to if any possible to determinevoid onServiceRemove(CamelContext context, Service service, Route route)
Service.context - the camel contextservice - the removed serviceroute - the route the service belongs to if any possible to determinevoid onRoutesAdd(Collection<Route> routes)
Route(s).routes - the added routesvoid onRoutesRemove(Collection<Route> routes)
Route(s).routes - the removed routesvoid onRouteContextCreate(Route route)
Route(s).route - the created route contextvoid onThreadPoolAdd(CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
camelContext - the camel contextthreadPool - the thread poolid - id of the thread pool (can be null in special cases)sourceId - id of the source creating the thread pool (can be null in special cases)routeId - id of the route for the source (is null if no source)threadPoolProfileId - id of the thread pool profile, if used for creating this thread pool (can be null)void onThreadPoolRemove(CamelContext camelContext, ThreadPoolExecutor threadPool)
camelContext - the camel contextthreadPool - the thread poolApache Camel