com.l2fprod.common.util.converter
Class ConverterRegistry
java.lang.Object
com.l2fprod.common.util.converter.ConverterRegistry
- All Implemented Interfaces:
- Converter
public class ConverterRegistry
- extends java.lang.Object
- implements Converter
ConverterRegistry.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterRegistry
public ConverterRegistry()
addConverter
public void addConverter(java.lang.Class from,
java.lang.Class to,
Converter converter)
getConverter
public Converter getConverter(java.lang.Class from,
java.lang.Class to)
convert
public java.lang.Object convert(java.lang.Class targetType,
java.lang.Object value)
- Description copied from interface:
Converter
- Converts
value
to an object of type
.
- Specified by:
convert
in interface Converter
- Returns:
value
converted to an object of type
.
instance
public static ConverterRegistry instance()