Class CamelModule

  extended by
      extended by
          extended by org.apache.camel.guice.jsr250.Jsr250Module
              extended by org.apache.camel.guice.CamelModule
All Implemented Interfaces:
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 {
   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.


Constructor Summary
Method Summary
protected  void configure()
protected  void 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 CamelModule()
Method Detail


protected void configureCamelContext()


protected void configure()
configure in class Jsr250Module

Apache Camel