org.jboss.errai.common.client.types
Class TypeHandlerFactory

java.lang.Object
  extended by org.jboss.errai.common.client.types.TypeHandlerFactory

public class TypeHandlerFactory
extends Object


Constructor Summary
TypeHandlerFactory()
           
 
Method Summary
static void addHandler(Class from, Class to, TypeHandler handler)
           
static Boolean checkCache(Class from, Class to)
           
static
<T> T
convert(Class from, Class<T> to, Object value, DecodingContext decodingContext)
           
static
<T> T
convert(Object value, Class<T> to, DecodingContext decodingContext)
           
static Map<Class,TypeHandler> getHandler(Class from)
           
static boolean gwtSafe_IsAssignableFrom(Class from, Class to)
           
static boolean recordCache(Class from, Class to, boolean result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHandlerFactory

public TypeHandlerFactory()
Method Detail

getHandler

public static Map<Class,TypeHandler> getHandler(Class from)

convert

public static <T> T convert(Object value,
                            Class<T> to,
                            DecodingContext decodingContext)

convert

public static <T> T convert(Class from,
                            Class<T> to,
                            Object value,
                            DecodingContext decodingContext)

checkCache

public static Boolean checkCache(Class from,
                                 Class to)

recordCache

public static boolean recordCache(Class from,
                                  Class to,
                                  boolean result)

gwtSafe_IsAssignableFrom

public static boolean gwtSafe_IsAssignableFrom(Class from,
                                               Class to)

addHandler

public static void addHandler(Class from,
                              Class to,
                              TypeHandler handler)


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.