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)
Injector
instanceOf
in interface Injector
clazz
- The class to get the instance ofpublic <T> T instanceOf(play.api.inject.BindingKey<T> key)
Injector
instanceOf
in interface Injector
key
- The key of the binding