| Modifier and Type | Field and Description |
|---|---|
private Injector<T> |
target |
private java.lang.Class<T> |
type |
| Constructor and Description |
|---|
CastingInjector(Injector<T> target,
java.lang.Class<T> type)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
inject(java.lang.Object value)
Inject the given value.
|
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
public void inject(java.lang.Object value)
throws InjectionException
inject in interface Injector<java.lang.Object>value - the valueInjectionException - if the injection failed