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.LifecycleStrategySupport
A LifecycleStrategy to trigger shutdown of the Main JVM when CamelContext is stopped from JMX or its stop method is invoked from Java code.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onContextStopping(org.apache.camel.CamelContext context)
     

    Methods inherited from class org.apache.camel.support.LifecycleStrategySupport

    adapt, adapt, adapt, adapt, adapt, adapt, adapt, doAutoWire, onCamelContextInitialized, onCamelContextInitializing, onCamelContextStarted, onCamelContextStarting, onCamelContextStopped, onCamelContextStopping, onComponentAdd, onComponentRemove, onEndpointAdd, onEndpointRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.spi.LifecycleStrategy

    onContextInitialized, onContextInitializing, onContextStarted, onContextStarting, onContextStopped, onDataFormatCreated, onLanguageCreated
  • Constructor Details

  • Method Details

    • onContextStopping

      public void onContextStopping(org.apache.camel.CamelContext context)