com.l2fprod.common.util.converter
Class ConverterRegistry

java.lang.Object
  extended by com.l2fprod.common.util.converter.ConverterRegistry
All Implemented Interfaces:
Converter

public class ConverterRegistry
extends java.lang.Object
implements Converter

ConverterRegistry.


Constructor Summary
ConverterRegistry()
           
 
Method Summary
 void addConverter(java.lang.Class from, java.lang.Class to, Converter converter)
           
 java.lang.Object convert(java.lang.Class targetType, java.lang.Object value)
          Converts value to an object of type.
 Converter getConverter(java.lang.Class from, java.lang.Class to)
           
static ConverterRegistry instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterRegistry

public ConverterRegistry()
Method Detail

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()