Package org.apache.camel.main
Class MainLifecycleStrategy
- java.lang.Object
-
- org.apache.camel.support.LifecycleStrategySupport
-
- org.apache.camel.main.MainLifecycleStrategy
-
- All Implemented Interfaces:
org.apache.camel.spi.LifecycleStrategy
public class MainLifecycleStrategy extends org.apache.camel.support.LifecycleStrategySupportALifecycleStrategyto trigger shutdown of the Main JVM whenCamelContextis stopped from JMX or its stop method is invoked from Java code.
-
-
Constructor Summary
Constructors Constructor Description MainLifecycleStrategy(MainShutdownStrategy shutdownStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonContextStopping(org.apache.camel.CamelContext context)-
Methods inherited from class org.apache.camel.support.LifecycleStrategySupport
adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, onCamelContextInitialized, onCamelContextInitializing, onCamelContextStart, onCamelContextStarted, onCamelContextStarting, onCamelContextStop, onCamelContextStopped, onCamelContextStopping, onComponentAdd, onComponentRemove, onContextStart, onContextStop, onEndpointAdd, onEndpointRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemove
-
-
-
-
Constructor Detail
-
MainLifecycleStrategy
public MainLifecycleStrategy(MainShutdownStrategy shutdownStrategy)
-
-