Java Code Examples for com.google.inject.multibindings.MapBinder#addBinding()
The following examples show how to use
com.google.inject.multibindings.MapBinder#addBinding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AmodeusUtils.java From amodeus with GNU General Public License v2.0 | 4 votes |
static public LinkedBindingBuilder<AmodeusDispatcher.AVDispatcherFactory> bindDispatcherFactory(Binder binder, String dispatcherName) { MapBinder<String, AmodeusDispatcher.AVDispatcherFactory> map = MapBinder.newMapBinder(binder, String.class, AmodeusDispatcher.AVDispatcherFactory.class); return map.addBinding(dispatcherName); }
Example 2
Source File: AmodeusUtils.java From amodeus with GNU General Public License v2.0 | 4 votes |
static public LinkedBindingBuilder<AmodeusGenerator.AVGeneratorFactory> bindGeneratorFactory(Binder binder, String generatorName) { MapBinder<String, AmodeusGenerator.AVGeneratorFactory> map = MapBinder.newMapBinder(binder, String.class, AmodeusGenerator.AVGeneratorFactory.class); return map.addBinding(generatorName); }
Example 3
Source File: AmodeusUtils.java From amodeus with GNU General Public License v2.0 | 4 votes |
static public LinkedBindingBuilder<AmodeusRouter.Factory> bindRouterFactory(Binder binder, String routerName) { MapBinder<String, AmodeusRouter.Factory> map = MapBinder.newMapBinder(binder, String.class, AmodeusRouter.Factory.class); return map.addBinding(routerName); }
Example 4
Source File: AmodeusUtils.java From amodeus with GNU General Public License v2.0 | 4 votes |
static public LinkedBindingBuilder<AmodeusInteractionFinder.AVInteractionFinderFactory> bindInteractionFinderFactory(Binder binder, String interactionFinderName) { MapBinder<String, AmodeusInteractionFinder.AVInteractionFinderFactory> map = MapBinder.newMapBinder(binder, String.class, AmodeusInteractionFinder.AVInteractionFinderFactory.class); return map.addBinding(interactionFinderName); }