Class CamelModuleWithMatchingRoutes

  extended by
      extended by
          extended by org.apache.camel.guice.jsr250.Jsr250Module
              extended by org.apache.camel.guice.CamelModule
                  extended by org.apache.camel.guice.CamelModuleWithMatchingRoutes
All Implemented Interfaces:

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 {
   Set<Routes> routes(Injector injector) { ... }


Constructor Summary
CamelModuleWithMatchingRoutes(<Class> matcher)
Method Summary
Methods inherited from class org.apache.camel.guice.CamelModule
configure, configureCamelContext
Methods inherited from class
bind, bind, bind, bindAnnotationInjector, bindAnnotationInjector, bindAnnotationInjector, bindInstance, bindMethodHandler, bindMethodHandler, bindMethodHandler, checkInjectedValueType, getParameterType
Methods inherited from class
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

Constructor Detail


public CamelModuleWithMatchingRoutes()


public CamelModuleWithMatchingRoutes(<Class> matcher)

Apache Camel