org.apache.camel.guice
Class CamelModule
java.lang.Object
com.google.inject.AbstractModule
org.apache.camel.guice.support.GuiceyFruitModule
org.apache.camel.guice.jsr250.Jsr250Module
org.apache.camel.guice.CamelModule
- All Implemented Interfaces:
- com.google.inject.Module
- Direct Known Subclasses:
- CamelModuleWithMatchingRoutes, CamelModuleWithRouteTypes
public class CamelModule
- extends Jsr250Module
A base Guice module for creating a CamelContext
leaving it up to the users module
to bind a Set for the routing rules.
To bind the routes you should create a provider method annotated with @Provides and returning Set such as
public class MyModule extends CamelModule {
@Provides
Set<Routes> routes(Injector injector) { ... }
}
If you wish to bind all of the bound RoutesBuilder
implementations available - maybe with some filter applied - then
please use the CamelModuleWithMatchingRoutes
.
Otherwise if you wish to list all of the classes of the RoutesBuilder
implementations then use the
CamelModuleWithRouteTypes
module instead.
- Version:
Methods inherited from class org.apache.camel.guice.support.GuiceyFruitModule |
bind, bind, bind, bindAnnotationInjector, bindAnnotationInjector, bindAnnotationInjector, bindInstance, bindMethodHandler, bindMethodHandler, bindMethodHandler, checkInjectedValueType, getParameterType |
Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelModule
public CamelModule()
configureCamelContext
protected void configureCamelContext()
configure
protected void configure()
- Overrides:
configure
in class Jsr250Module
Apache Camel