ServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.@Deprecated
public final class Injectors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Injector<java.lang.Object> |
cast(Injector<T> injector,
java.lang.Class<T> type)
Deprecated.
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>
Copyright © 2012 JBoss, a division of Red Hat, Inc.