io.sarl.sre.janus.internal
Class SubInjector
All Superinterfaces:
io.bootique.di.Injector
class SubInjector
extends java.lang.Object
An injector that is overriding bindings in a local run-time context.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.13
Constructor Summary
Constructor and description
new(Injector,BQModule*)
Contructs a subinjector.
Action Summary
Modifier and type Action and description
T getInstance(Key<T>)
T getInstance(Class<T>)
java.util.List<E> getKeysByType(Class<T>)
javax.inject.Provider<T> getProvider(Key<T>)
javax.inject.Provider<T> getProvider(Class<T>)
boolean hasProvider(Key<T>)
boolean hasProvider(Class<T>)
void shutdown
Constructor Details
new(Injector,BQModule*)
new(Injector,BQModule*)
Contructs a subinjector.
Parameters:
injector - the parent injector.
modules - the modules that are sepcific to this subinjector.
Action Details
getInstance(Key<T>)
def getInstance(Key<T>) : T

with T

throws io.bootique.di.DIRuntimeException

getInstance(Class<T>)
def getInstance(Class<T>) : T

with T

throws io.bootique.di.DIRuntimeException

getKeysByType(Class<T>)
def getKeysByType(Class<T>) : java.util.List<E>

with T

getProvider(Key<T>)
def getProvider(Key<T>) : javax.inject.Provider<T>

with T

throws io.bootique.di.DIRuntimeException

getProvider(Class<T>)
def getProvider(Class<T>) : javax.inject.Provider<T>

with T

throws io.bootique.di.DIRuntimeException

hasProvider(Key<T>)
def hasProvider(Key<T>) : boolean

throws io.bootique.di.DIRuntimeException

hasProvider(Class<T>)
def hasProvider(Class<T>) : boolean

throws io.bootique.di.DIRuntimeException

shutdown
def shutdown