org.constretto.internal.converter
Class ValueConverterRegistry

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

public class ValueConverterRegistry
extends java.lang.Object

Author:
Kaare Nilsen

Constructor Summary
ValueConverterRegistry()
           
 
Method Summary
static
<T> T
convert(java.lang.Class<T> clazz, java.lang.String value)
           
static void registerCustomConverter(java.lang.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(java.lang.Class<?> converterFor,
                                           ValueConverter<?> converter)

convert

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


Copyright © 2008-2011. All Rights Reserved.