use of proton.inject.listener.ProviderListeners in project AndroidTraining by mixi-inc.
the class Proton method initialize.
public static void initialize(Application app, Module... modules) {
synchronized (Proton.class) {
checkState(sInjectors == null, "Already initialized Proton");
sInjectors = new WeakHashMap<Context, InjectorImpl>();
sBindings = new Bindings();
sProviderListeners = new ProviderListeners();
sFieldListeners = new FieldListeners();
for (Module module : modules) module.configure(sBindings, sProviderListeners, sFieldListeners);
InjectorImpl injector = new InjectorImpl(app, sBindings, sProviderListeners, sFieldListeners, null);
sInjectors.put(app, injector);
}
}
Aggregations