Package org.apache.camel.support
Class LifecycleStrategySupport
- java.lang.Object
-
- org.apache.camel.support.LifecycleStrategySupport
-
- All Implemented Interfaces:
org.apache.camel.spi.LifecycleStrategy
public abstract class LifecycleStrategySupport extends Object implements org.apache.camel.spi.LifecycleStrategy
A useful base class forLifecycleStrategy
implementations.
-
-
Constructor Summary
Constructors Constructor Description LifecycleStrategySupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextEvent handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextInitialized handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextInitializing handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStart handler)
Deprecated.static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStarted handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStarting handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStop handler)
Deprecated.static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStopped handler)
static org.apache.camel.spi.LifecycleStrategy
adapt(org.apache.camel.spi.OnCamelContextStopping handler)
static org.apache.camel.spi.OnCamelContextInitialized
onCamelContextInitialized(Consumer<org.apache.camel.CamelContext> consumer)
static org.apache.camel.spi.OnCamelContextInitializing
onCamelContextInitializing(Consumer<org.apache.camel.CamelContext> consumer)
static org.apache.camel.spi.OnCamelContextStart
onCamelContextStart(Consumer<org.apache.camel.CamelContext> consumer)
Deprecated.static org.apache.camel.spi.OnCamelContextStarted
onCamelContextStarted(Consumer<org.apache.camel.CamelContext> consumer)
static org.apache.camel.spi.OnCamelContextStarting
onCamelContextStarting(Consumer<org.apache.camel.CamelContext> consumer)
static org.apache.camel.spi.OnCamelContextStop
onCamelContextStop(Consumer<org.apache.camel.CamelContext> consumer)
Deprecated.static org.apache.camel.spi.OnCamelContextStopped
onCamelContextStopped(Consumer<org.apache.camel.CamelContext> consumer)
static org.apache.camel.spi.OnCamelContextStopping
onCamelContextStopping(Consumer<org.apache.camel.CamelContext> consumer)
void
onComponentAdd(String name, org.apache.camel.Component component)
void
onComponentRemove(String name, org.apache.camel.Component component)
void
onContextStart(org.apache.camel.CamelContext context)
Deprecated.seeLifecycleStrategy.onContextStart(CamelContext)
void
onContextStop(org.apache.camel.CamelContext context)
Deprecated.seeLifecycleStrategy.onContextStop(CamelContext)
void
onEndpointAdd(org.apache.camel.Endpoint endpoint)
void
onEndpointRemove(org.apache.camel.Endpoint endpoint)
void
onRouteContextCreate(org.apache.camel.Route route)
void
onRoutesAdd(Collection<org.apache.camel.Route> routes)
void
onRoutesRemove(Collection<org.apache.camel.Route> routes)
void
onServiceAdd(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route)
void
onServiceRemove(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route)
void
onThreadPoolAdd(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
void
onThreadPoolRemove(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool)
-
-
-
Method Detail
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextEvent handler)
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextInitializing handler)
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextInitialized handler)
-
adapt
@Deprecated public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStart handler)
Deprecated.
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStarting handler)
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStarted handler)
-
adapt
@Deprecated public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStop handler)
Deprecated.
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStopping handler)
-
adapt
public static org.apache.camel.spi.LifecycleStrategy adapt(org.apache.camel.spi.OnCamelContextStopped handler)
-
onCamelContextInitializing
public static org.apache.camel.spi.OnCamelContextInitializing onCamelContextInitializing(Consumer<org.apache.camel.CamelContext> consumer)
-
onCamelContextInitialized
public static org.apache.camel.spi.OnCamelContextInitialized onCamelContextInitialized(Consumer<org.apache.camel.CamelContext> consumer)
-
onCamelContextStart
@Deprecated public static org.apache.camel.spi.OnCamelContextStart onCamelContextStart(Consumer<org.apache.camel.CamelContext> consumer)
Deprecated.
-
onCamelContextStarting
public static org.apache.camel.spi.OnCamelContextStarting onCamelContextStarting(Consumer<org.apache.camel.CamelContext> consumer)
-
onCamelContextStarted
public static org.apache.camel.spi.OnCamelContextStarted onCamelContextStarted(Consumer<org.apache.camel.CamelContext> consumer)
-
onCamelContextStop
@Deprecated public static org.apache.camel.spi.OnCamelContextStop onCamelContextStop(Consumer<org.apache.camel.CamelContext> consumer)
Deprecated.
-
onCamelContextStopping
public static org.apache.camel.spi.OnCamelContextStopping onCamelContextStopping(Consumer<org.apache.camel.CamelContext> consumer)
-
onCamelContextStopped
public static org.apache.camel.spi.OnCamelContextStopped onCamelContextStopped(Consumer<org.apache.camel.CamelContext> consumer)
-
onContextStart
@Deprecated public void onContextStart(org.apache.camel.CamelContext context) throws org.apache.camel.VetoCamelContextStartException
Deprecated.seeLifecycleStrategy.onContextStart(CamelContext)
- Specified by:
onContextStart
in interfaceorg.apache.camel.spi.LifecycleStrategy
- Throws:
org.apache.camel.VetoCamelContextStartException
-
onContextStop
@Deprecated public void onContextStop(org.apache.camel.CamelContext context)
Deprecated.seeLifecycleStrategy.onContextStop(CamelContext)
- Specified by:
onContextStop
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onComponentAdd
public void onComponentAdd(String name, org.apache.camel.Component component)
- Specified by:
onComponentAdd
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onComponentRemove
public void onComponentRemove(String name, org.apache.camel.Component component)
- Specified by:
onComponentRemove
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onEndpointAdd
public void onEndpointAdd(org.apache.camel.Endpoint endpoint)
- Specified by:
onEndpointAdd
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onEndpointRemove
public void onEndpointRemove(org.apache.camel.Endpoint endpoint)
- Specified by:
onEndpointRemove
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onServiceAdd
public void onServiceAdd(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route)
- Specified by:
onServiceAdd
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onServiceRemove
public void onServiceRemove(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route)
- Specified by:
onServiceRemove
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRoutesAdd
public void onRoutesAdd(Collection<org.apache.camel.Route> routes)
- Specified by:
onRoutesAdd
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRoutesRemove
public void onRoutesRemove(Collection<org.apache.camel.Route> routes)
- Specified by:
onRoutesRemove
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRouteContextCreate
public void onRouteContextCreate(org.apache.camel.Route route)
- Specified by:
onRouteContextCreate
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onThreadPoolAdd
public void onThreadPoolAdd(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
- Specified by:
onThreadPoolAdd
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
onThreadPoolRemove
public void onThreadPoolRemove(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool)
- Specified by:
onThreadPoolRemove
in interfaceorg.apache.camel.spi.LifecycleStrategy
-
-