|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.enterprise.util.TypeLiteral<T>
T
- the type, including all actual type parameterspublic abstract class TypeLiteral<T>
Supports inline instantiation of objects that represent parameterized types with actual type parameters.
An object that represents any parameterized type may be obtained by subclassing TypeLiteral.
TypeLiteral<List<String>> type = new TypeLiteral<List<String>>() {};
Instance.select(TypeLiteral, Annotation...)
,
Event.select(TypeLiteral, Annotation...)
Constructor Summary | |
---|---|
protected |
TypeLiteral()
|
Method Summary | |
---|---|
java.lang.Class<T> |
getRawType()
|
java.lang.reflect.Type |
getType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TypeLiteral()
Method Detail |
---|
public final java.lang.reflect.Type getType()
public final java.lang.Class<T> getRawType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |