T - the type to which the argument should be castpublic final class CastingInjector<T> extends java.lang.Object implements Injector<java.lang.Object>
| 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 failedCopyright © 2012 JBoss, a division of Red Hat, Inc.