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 |
---|---|
play.api.inject.Injector |
asScala()
Get as an instance of the Scala injector.
|
<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
T
- the type of the instanceclazz
- The class to get the instance ofpublic <T> T instanceOf(play.api.inject.BindingKey<T> key)
Injector
instanceOf
in interface Injector
T
- the type of the instancekey
- The key of the binding