Errai 3.0.1-SNAPSHOT

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
<T> T
convert(Class from, Class<T> to, Object value)
           
static
<T> T
convert(Object value, Class<T> to)
           
static Map<Class,TypeHandler> getHandler(Class from)
           
 
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)

convert

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

addHandler

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

Errai 3.0.1-SNAPSHOT

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