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 for
LifecycleStrategy implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextEvent handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextInitialized handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextInitializing handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextStarted handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextStarting handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextStopped handler) static org.apache.camel.spi.LifecycleStrategyadapt(org.apache.camel.spi.OnCamelContextStopping handler) protected static voiddoAutoWire(String name, String kind, Object target, org.apache.camel.CamelContext camelContext) static org.apache.camel.spi.OnCamelContextInitializedonCamelContextInitialized(Consumer<org.apache.camel.CamelContext> consumer) static org.apache.camel.spi.OnCamelContextInitializingonCamelContextInitializing(Consumer<org.apache.camel.CamelContext> consumer) static org.apache.camel.spi.OnCamelContextStartedonCamelContextStarted(Consumer<org.apache.camel.CamelContext> consumer) static org.apache.camel.spi.OnCamelContextStartingonCamelContextStarting(Consumer<org.apache.camel.CamelContext> consumer) static org.apache.camel.spi.OnCamelContextStoppedonCamelContextStopped(Consumer<org.apache.camel.CamelContext> consumer) static org.apache.camel.spi.OnCamelContextStoppingonCamelContextStopping(Consumer<org.apache.camel.CamelContext> consumer) voidonComponentAdd(String name, org.apache.camel.Component component) voidonComponentRemove(String name, org.apache.camel.Component component) voidonEndpointAdd(org.apache.camel.Endpoint endpoint) voidonEndpointRemove(org.apache.camel.Endpoint endpoint) voidonRouteContextCreate(org.apache.camel.Route route) voidonRoutesAdd(Collection<org.apache.camel.Route> routes) voidonRoutesRemove(Collection<org.apache.camel.Route> routes) voidonServiceAdd(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route) voidonServiceRemove(org.apache.camel.CamelContext context, org.apache.camel.Service service, org.apache.camel.Route route) voidonThreadPoolAdd(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId) voidonThreadPoolRemove(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.LifecycleStrategy
onContextInitialized, onContextInitializing, onContextStarted, onContextStarting, onContextStopped, onContextStopping, onDataFormatCreated, onLanguageCreated, onServiceRemove
-
Constructor Details
-
LifecycleStrategySupport
public LifecycleStrategySupport()
-
-
Method Details
-
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
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
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) -
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) -
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) -
onComponentAdd
- Specified by:
onComponentAddin interfaceorg.apache.camel.spi.LifecycleStrategy
-
onComponentRemove
- Specified by:
onComponentRemovein interfaceorg.apache.camel.spi.LifecycleStrategy
-
onEndpointAdd
public void onEndpointAdd(org.apache.camel.Endpoint endpoint) - Specified by:
onEndpointAddin interfaceorg.apache.camel.spi.LifecycleStrategy
-
onEndpointRemove
public void onEndpointRemove(org.apache.camel.Endpoint endpoint) - Specified by:
onEndpointRemovein 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:
onServiceAddin 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:
onServiceRemovein interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRoutesAdd
- Specified by:
onRoutesAddin interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRoutesRemove
- Specified by:
onRoutesRemovein interfaceorg.apache.camel.spi.LifecycleStrategy
-
onRouteContextCreate
public void onRouteContextCreate(org.apache.camel.Route route) - Specified by:
onRouteContextCreatein 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:
onThreadPoolAddin interfaceorg.apache.camel.spi.LifecycleStrategy
-
onThreadPoolRemove
public void onThreadPoolRemove(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool) - Specified by:
onThreadPoolRemovein interfaceorg.apache.camel.spi.LifecycleStrategy
-
doAutoWire
-