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.
|
public void inject(java.lang.Object value)
throws InjectionException
inject in interface Injector<java.lang.Object>value - the valueInjectionException - if the injection failedCopyright © 2011 JBoss, a division of Red Hat, Inc.