Class ManagedCamelContext

  • All Implemented Interfaces:
    io.dropwizard.lifecycle.Managed

    @Beta
    public class ManagedCamelContext
    extends Object
    implements io.dropwizard.lifecycle.Managed
    Provides a Dropwizard Managed to start and stop a CamelContext as your application is started and stopped, respectively.
    • Constructor Detail

      • ManagedCamelContext

        public ManagedCamelContext​(org.apache.camel.CamelContext camelContext)
        Creates a new instance with a default name.
      • ManagedCamelContext

        public ManagedCamelContext​(String name,
                                   org.apache.camel.CamelContext camelContext)
        Creates a new instance with the given name to be used in log messages.
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface io.dropwizard.lifecycle.Managed
      • stop

        public void stop()
        Specified by:
        stop in interface io.dropwizard.lifecycle.Managed