T - The bound key typepublic class ToFactoryProvider<T> extends StdProvider<T>
ProxiedFactoryProviderinjected| Constructor and Description |
|---|
ToFactoryProvider(TypeReference<? extends ValueFactory> factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
boolean |
onBind(BinderImpl binder,
Key<?> key)
Listener method called when the provider
is bound.
|
get, inject, isInjected, setInjected, withScopepublic ToFactoryProvider(TypeReference<? extends ValueFactory> factory)
public boolean onBind(BinderImpl binder, Key<?> key)
StdProviderAdds the control of the binding to the provider, used by standard providers to replace bindings and some other things.
onBind in class StdProvider<T>binder - The binder used to bind this providerkey - The bound keyToFactoryProvider that converts its binding
to another binding. (Removes its binding and adds another one)