Package org.kiwiproject.beta.dropwizard
Class ManagedCamelContext
java.lang.Object
org.kiwiproject.beta.dropwizard.ManagedCamelContext
- All Implemented Interfaces:
io.dropwizard.lifecycle.Managed
Provides a Dropwizard
Managed to start and stop a
CamelContext as your application is started and
stopped, respectively.-
Constructor Summary
ConstructorsConstructorDescriptionManagedCamelContext(String name, org.apache.camel.CamelContext camelContext) Creates a new instance with the given name to be used in log messages.ManagedCamelContext(org.apache.camel.CamelContext camelContext) Creates a new instance with a default name. -
Method Summary
-
Constructor Details
-
ManagedCamelContext
public ManagedCamelContext(org.apache.camel.CamelContext camelContext) Creates a new instance with a default name. -
ManagedCamelContext
Creates a new instance with the given name to be used in log messages.
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceio.dropwizard.lifecycle.Managed
-
stop
public void stop()- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed
-