| Constructor and Description |
|---|
StaticInjector(DAGNode<Component,Dependency> g)
Create a new static injector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
<T> T |
getInstance(java.lang.annotation.Annotation qualifier,
java.lang.Class<T> type) |
<T> T |
getInstance(java.lang.Class<T> type) |
<T> T |
tryGetInstance(java.lang.annotation.Annotation qualifier,
java.lang.Class<T> type) |
<T> T |
tryGetInstance(java.lang.Class<? extends java.lang.annotation.Annotation> qual,
java.lang.Class<T> type) |
<T> T |
tryGetInstance(java.lang.Class<T> type) |
<T> T |
tryGetInstance(QualifierMatcher qmatch,
java.lang.Class<T> type) |
public StaticInjector(DAGNode<Component,Dependency> g)
Create a new static injector.
g - The object graph.public <T> T getInstance(java.lang.Class<T> type)
throws InjectionException
getInstance in interface InjectorInjectionExceptionpublic <T> T tryGetInstance(java.lang.Class<? extends java.lang.annotation.Annotation> qual,
java.lang.Class<T> type)
throws InjectionException
InjectionExceptionpublic <T> T tryGetInstance(QualifierMatcher qmatch, java.lang.Class<T> type) throws InjectionException
InjectionException@Nullable
public <T> T tryGetInstance(java.lang.Class<T> type)
throws InjectionException
InjectionException@Nullable
public <T> T tryGetInstance(java.lang.annotation.Annotation qualifier,
java.lang.Class<T> type)
throws InjectionException
tryGetInstance in interface InjectorInjectionExceptionpublic <T> T getInstance(java.lang.annotation.Annotation qualifier,
java.lang.Class<T> type)
throws InjectionException
getInstance in interface InjectorInjectionExceptionpublic void close()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable