| Modifier and Type | Field and Description |
|---|---|
play.api.inject.Injector |
injector |
| Constructor and Description |
|---|
DelegateInjector(play.api.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
instanceOf(play.api.inject.BindingKey<T> key)
Get an instance of the given class from the injector.
|
<T> T |
instanceOf(java.lang.Class<T> clazz)
Get an instance of the given class from the injector.
|
@Inject public DelegateInjector(play.api.inject.Injector injector)
public <T> T instanceOf(java.lang.Class<T> clazz)
InjectorinstanceOf in interface Injectorclazz - The class to get the instance ofpublic <T> T instanceOf(play.api.inject.BindingKey<T> key)
InjectorinstanceOf in interface Injectorkey - The key of the binding