| Constructor and Description |
|---|
InternalInjector() |
| Modifier and Type | Method and Description |
|---|---|
<T> Binding<T> |
getBinding(Class<T> type)
Get the binding for the given class, if one exists.
|
<T> Binding<T> |
getBinding(Key<T> key)
Get the binding for the given key, if one exists.
|
<T> T |
getInstance(Class<T> type,
CommandArgs arguments,
List<? extends Annotation> modifiers)
Attempt to provide a value for the given class using the given
arguments.
|
<T> T |
getInstance(Key<T> key,
CommandArgs arguments,
List<? extends Annotation> modifiers)
Attempt to provide a value for the given key using the given
arguments.
|
<T> Provider<T> |
getProvider(Class<T> type)
Get the provider for the given class, if one exists.
|
<T> Provider<T> |
getProvider(Key<T> key)
Get the provider for the given key, if one exists.
|
void |
install(Module module)
Install a module into the injector.
|
public void install(Module module)
Injector@Nullable public <T> Binding<T> getBinding(Key<T> key)
InjectorgetBinding in interface InjectorT - The type provided forkey - The key@Nullable public <T> Binding<T> getBinding(Class<T> type)
InjectorgetBinding in interface InjectorT - The type provided fortype - The class@Nullable public <T> Provider<T> getProvider(Key<T> key)
InjectorgetProvider in interface InjectorT - The type provided forkey - The key@Nullable public <T> Provider<T> getProvider(Class<T> type)
InjectorgetProvider in interface InjectorT - The type provided fortype - The classpublic <T> T getInstance(Key<T> key, CommandArgs arguments, List<? extends Annotation> modifiers) throws ArgumentException, ProvisionException
InjectorgetInstance in interface InjectorT - The type providedkey - The keyarguments - The argumentsmodifiers - The modifier annotations on the parameterArgumentException - If there is a problem with the argumentProvisionException - If there is a problem with the providerpublic <T> T getInstance(Class<T> type, CommandArgs arguments, List<? extends Annotation> modifiers) throws ArgumentException, ProvisionException
InjectorgetInstance in interface InjectorT - The type providedtype - The classarguments - The argumentsmodifiers - The modifier annotations on the parameterArgumentException - If there is a problem with the argumentProvisionException - If there is a problem with the providerCopyright © 2015. All Rights Reserved.