T - The provider return typepublic class DelegatingStdProvider<T> extends StdProvider<T> implements Provider<T>
injected| Constructor and Description |
|---|
DelegatingStdProvider(boolean injected,
Provider<T> delegate) |
DelegatingStdProvider(Provider<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
T |
get() |
Provider<T> |
getDelegate() |
int |
hashCode() |
void |
inject(ProvisionStack stack,
InjectorImpl injector)
Used by standard providers and some other
providers to delegate the injection to the
wrapped provider (when it's a wrapper provider)
or injecting some provider properties without
checking everything
|
boolean |
onBind(BinderImpl binder,
Key<?> key)
Listener method called when the provider
is bound.
|
java.lang.String |
toString() |
Provider<T> |
withScope(Key<?> match,
Scope scope)
Adds the control of scoping the provider.
|
get, isInjected, setInjectedpublic void inject(ProvisionStack stack, InjectorImpl injector)
StdProviderUsed by standard providers and some other providers to delegate the injection to the wrapped provider (when it's a wrapper provider) or injecting some provider properties without checking everything
inject in class StdProvider<T>stack - The thread injection stack (passed as argument
instead of getting it from the thread-local held
by the injector)injector - The injector used to inject this providerpublic 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)public Provider<T> withScope(Key<?> match, Scope scope)
StdProvider
Scopes the provider with the given scope
withScope in class StdProvider<T>match - The key used to match the scopescope - The scope to applypublic T get()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object