JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.inject
Class Injectors

java.lang.Object
  extended by org.jboss.msc.inject.Injectors

public final class Injectors
extends Object

Utility class to construct injector types.

Author:
David M. Lloyd

Method Summary
static
<T> Injector<Object>
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
 

Method Detail

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 type
type - a class of the injected type
Returns:
an Injector which implements Injector<Object>

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.