org.apache.camel.guice
Class CamelModuleWithMatchingRoutes
java.lang.Object
com.google.inject.AbstractModule
org.apache.camel.guice.support.GuiceyFruitModule
org.apache.camel.guice.jsr250.Jsr250Module
org.apache.camel.guice.CamelModule
org.apache.camel.guice.CamelModuleWithMatchingRoutes
- All Implemented Interfaces:
- com.google.inject.Module
public class CamelModuleWithMatchingRoutes
- extends CamelModule
A Guice Module which injects the CamelContext with all available implementations
of RoutesBuilder
which are bound to Guice with an optional Matcher
to filter out the classes required.
Or if you would like to specify exactly which RoutesBuilder
to bind then use the CamelModule
and create a provider
method annotated with @Provides and returning Set such as
public class MyModule extends CamelModule {
@Provides
Set<Routes> routes(Injector injector) { ... }
}
- 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 |
CamelModuleWithMatchingRoutes
public CamelModuleWithMatchingRoutes()
CamelModuleWithMatchingRoutes
public CamelModuleWithMatchingRoutes(com.google.inject.matcher.Matcher<Class> matcher)
Apache Camel