use of com.google.gwt.inject.rebind.output.OutputModule in project google-gin by gwtplus.
the class GinjectorGeneratorModule method configure.
@Override
protected void configure() {
install(new ResolutionModule());
install(new OutputModule());
bind(TreeLogger.class).toInstance(logger);
bind(GeneratorContext.class).toInstance(ctx);
bind(new TypeLiteral<Class<? extends Ginjector>>() {
}).annotatedWith(GinjectorInterfaceType.class).toInstance(ginjectorInterface);
bind(GinjectorBindings.class).annotatedWith(RootBindings.class).to(GinjectorBindings.class).in(Singleton.class);
bind(BindingIndex.class).to(Key.get(GinjectorBindings.class, RootBindings.class)).in(Singleton.class);
install(new FactoryModuleBuilder().build(GuiceElementVisitor.GuiceElementVisitorFactory.class));
bind(new TypeLiteral<Set<Class<? extends GinModule>>>() {
}).annotatedWith(ModuleClasses.class).toInstance(moduleClasses);
bind(BindingFactory.class).to(BindingFactoryImpl.class);
install(new FactoryModuleBuilder().build(SourceWriteUtil.Factory.class));
}
Aggregations