Package org.connectorio.dropwizard.camel
Class CamelBundle<T extends CamelConfiguration>
- java.lang.Object
-
- org.connectorio.dropwizard.camel.CamelBundle<T>
-
- Type Parameters:
T- Type of configuration.
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<T>
public abstract class CamelBundle<T extends CamelConfiguration> extends Object implements io.dropwizard.ConfiguredBundle<T>
Defines camel bundle - an attachable configuration and runtime unit from Dropwizard point of view.- Author:
- Ćukasz Dywicki
-
-
Constructor Summary
Constructors Constructor Description CamelBundle()CamelBundle(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Map<String,Object>getBeans(Map<String,Object> properties)org.apache.camel.CamelContextgetContext()voidinitialize(io.dropwizard.setup.Bootstrap<?> bootstrap)voidrun(T configuration, io.dropwizard.setup.Environment environment)
-
-
-
Constructor Detail
-
CamelBundle
public CamelBundle()
-
CamelBundle
public CamelBundle(String name)
-
-
Method Detail
-
run
public void run(T configuration, io.dropwizard.setup.Environment environment) throws Exception
- Specified by:
runin interfaceio.dropwizard.ConfiguredBundle<T extends CamelConfiguration>- Throws:
Exception
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initializein interfaceio.dropwizard.ConfiguredBundle<T extends CamelConfiguration>
-
getContext
public org.apache.camel.CamelContext getContext()
-
-