org.constretto.internal.converter
Class ValueConverterRegistry

java.lang.Object
  extended by org.constretto.internal.converter.ValueConverterRegistry

public class ValueConverterRegistry
extends Object

Author:
Kaare Nilsen

Constructor Summary
ValueConverterRegistry()
           
 
Method Summary
static
<T> T
convert(Class<T> clazz, String value)
           
static void registerCustomConverter(Class<?> converterFor, ValueConverter<?> converter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueConverterRegistry

public ValueConverterRegistry()
Method Detail

registerCustomConverter

public static void registerCustomConverter(Class<?> converterFor,
                                           ValueConverter<?> converter)

convert

public static <T> T convert(Class<T> clazz,
                            String value)
                 throws ConstrettoException
Throws:
ConstrettoException


Copyright © 2008-2011. All Rights Reserved.