public final class Injectors extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Injector<Object> |
cast(Injector<T> injector,
Class<T> type)
Construct a casting injector.
|
public static <T> Injector<Object> cast(Injector<T> injector, Class<T> type)
T
- the type of the injected valueinjector
- an injector of any typetype
- a class of the injected typeInjector<Object>
Copyright © 2017 JBoss by Red Hat. All rights reserved.