public class ToGenericProvider.SyntheticGenericProvider extends StdProvider<T> implements Provider<T>
injected| Constructor and Description |
|---|
SyntheticGenericProvider(Key<?> match,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
Provider<T> |
withScope(Key<?> match,
Scope scope)
Adds the control of scoping the provider.
|
get, inject, isInjected, onBind, setInjectedpublic T get()
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 apply