Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.util
Class SimpleTypeLiteral<T>

java.lang.Object
  extended by org.jboss.errai.marshalling.client.util.SimpleTypeLiteral<T>

public class SimpleTypeLiteral<T>
extends Object

A simplified version of java.enterprise.util.TypeLiteral that does complete erasure for use in the marshalling API where one needs to return an erased type class instance, but the class parameterization makes that impossible.

Author:
Mike Brock

Method Summary
 Class<T> get()
           
static
<T> SimpleTypeLiteral<T>
ofRawType(Class rawType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ofRawType

public static <T> SimpleTypeLiteral<T> ofRawType(Class rawType)

get

public Class<T> get()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.