Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public class MyModule extends CamelModule {
    /**
     * Lets add the routes
     */
    @Override
    protected void configureRoutes(Multibinder<Routes> binder) {
        binder.addBinding().to(MyHardcodeRoute.class);
        binder.addBinding().to(MyRouteInstallerAnotherRouteBuilder.class);
    }
}
...
Injector injector = Guice.createInjector(new MyModule());

...