Package com.bc.ceres.binding
Class ConverterRegistry
- java.lang.Object
-
- com.bc.ceres.binding.ConverterRegistry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Converter<T>
getConverter(Class<? extends T> type)
Gets the converter registered with the given type.static ConverterRegistry
getInstance()
Gets the singleton instance of the registry.<T> void
setConverter(Class<? extends T> type, Converter<T> converter)
Sets the converter to be used for the specified type.
-
-
-
Method Detail
-
getInstance
public static ConverterRegistry getInstance()
Gets the singleton instance of the registry.- Returns:
- The instance.
-
setConverter
public <T> void setConverter(Class<? extends T> type, Converter<T> converter)
Sets the converter to be used for the specified type.- Parameters:
type
- The type.converter
- The converter.
-
-