use of com.google.gwt.inject.client.assistedinject.FactoryModule in project google-gin by gwtplus.
the class BinderAdapter method install.
public void install(GinModule install) {
// Filtering out fake factory modules.
if (install instanceof FactoryModule) {
if (bindings != null) {
bindings.addFactoryModule((FactoryModule<?>) install);
}
} else {
// Here we need to take care to ensure that PrivateGinModule uses the appropriate
// type of adapter, and also get the corresponding Guice private binder.
final Module moduleAdapter;
if (install == null) {
moduleAdapter = null;
} else if (install instanceof PrivateGinModule) {
moduleAdapter = new PrivateGinModuleAdapter((PrivateGinModule) install, bindings);
} else {
moduleAdapter = new GinModuleAdapter(install, bindings);
}
binder.install(moduleAdapter);
}
}
Aggregations