javax.enterprise.inject
Class TypeLiteral<T>

java.lang.Object
  extended by javax.enterprise.inject.TypeLiteral<T>
Type Parameters:
T - the type, including all actual type parameters

public abstract class TypeLiteral<T>
extends java.lang.Object

Supports inline instantiation of objects that represent parameterized types with actual type parameters.

Author:
Gavin King, Pete Muir

Constructor Summary
protected TypeLiteral()
           
 
Method Summary
 java.lang.Class<T> getRawType()
          Get the raw type represented by the type literal
 java.lang.reflect.Type getType()
          Get the actual type represented by type literal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeLiteral

protected TypeLiteral()
Method Detail

getType

public final java.lang.reflect.Type getType()
Get the actual type represented by type literal

Returns:

getRawType

public final java.lang.Class<T> getRawType()
Get the raw type represented by the type literal

Returns:


Copyright © 2008-2009. All Rights Reserved.