public class MethodAsProvider<T> extends StdProvider<T>
injected| Constructor and Description |
|---|
MethodAsProvider(java.lang.Object moduleInstance,
InjectableMethod method) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
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
|
static <T> java.util.Map<Key<?>,Provider<?>> |
resolveMethodProviders(ErrorAttachable errors,
TypeReference<T> type,
T instance) |
get, isInjected, onBind, setInjected, withScopepublic MethodAsProvider(java.lang.Object moduleInstance,
InjectableMethod method)
public static <T> java.util.Map<Key<?>,Provider<?>> resolveMethodProviders(ErrorAttachable errors, TypeReference<T> type, T instance)
public 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 provider