public class CamelModuleWithRouteTypes extends CamelModule
RoutesBuilder types - which are then injected by Guice.
If you wish to bind all of the bound RoutesBuilder implementations available - maybe with some filter applied - then
please use the CamelModuleWithMatchingRoutes.
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
public class MyModule extends CamelModule {
@Provides
Set<Routes> routes(Injector injector) { ... }
}
| Constructor and Description |
|---|
CamelModuleWithRouteTypes(Class<? extends org.apache.camel.RoutesBuilder>... routeTypes) |
CamelModuleWithRouteTypes(Set<Class<? extends org.apache.camel.RoutesBuilder>> routes) |
configure, configureCamelContextbind, bind, bind, bindAnnotationInjector, bindAnnotationInjector, bindAnnotationInjector, bindInstance, bindMethodHandler, bindMethodHandler, bindMethodHandler, checkInjectedValueType, getParameterTypeaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingApache Camel