public final class Injectors
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Injectors() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Injector<java.lang.Object> |
cast(Injector<T> injector,
java.lang.Class<T> type)
Construct a casting injector.
|
public static <T> Injector<java.lang.Object> cast(Injector<T> injector, java.lang.Class<T> type)
T - the type of the injected valueinjector - an injector of any typetype - a class of the injected typeInjector<Object>