org.jboss.msc.inject
Class Injectors
java.lang.Object
org.jboss.msc.inject.Injectors
public final class Injectors
- extends Object
Utility class to construct injector types.
- Author:
- David M. Lloyd
Method Summary |
static
|
cast(Injector<T> injector,
Class<T> type)
Construct a casting injector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cast
public static <T> Injector<Object> cast(Injector<T> injector,
Class<T> type)
- Construct a casting injector.
- Type Parameters:
T
- the type of the injected value- Parameters:
injector
- an injector of any typetype
- a class of the injected type
- Returns:
- an Injector which implements
Injector<Object>
Copyright © 2011 JBoss, a division of Red Hat, Inc.