Constructor and Description |
---|
StaticInjector(DAGNode<Component,Dependency> g)
Create a new static injector.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getInstance(Annotation qualifier,
Class<T> type) |
<T> T |
getInstance(Class<? extends Annotation> qual,
Class<T> type) |
<T> T |
getInstance(Class<T> type) |
<T> T |
getInstance(QualifierMatcher qmatch,
Class<T> type) |
public StaticInjector(DAGNode<Component,Dependency> g)
g
- The object graph.public <T> T getInstance(Class<T> type) throws InjectionException
getInstance
in interface Injector
InjectionException
public <T> T getInstance(Class<? extends Annotation> qual, Class<T> type) throws InjectionException
InjectionException
public <T> T getInstance(QualifierMatcher qmatch, Class<T> type) throws InjectionException
InjectionException
public <T> T getInstance(Annotation qualifier, Class<T> type) throws InjectionException
getInstance
in interface Injector
InjectionException