Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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, adapt, adapt, onCamelContextInitialized, onCamelContextInitializing, onCamelContextStart, onCamelContextStarted, onCamelContextStarting, onCamelContextStop, onCamelContextStopped, onCamelContextStopping, onComponentAdd, onComponentRemove, onContextStart, onContextStop, onEndpointAdd, onEndpointRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemove
      • Methods inherited from interface org.apache.camel.spi.LifecycleStrategy

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

    • Method Detail

      • onContextStopping

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