Package com.bc.ceres.binding.dom
Class DomConverterRegistry
- java.lang.Object
-
- com.bc.ceres.binding.dom.DomConverterRegistry
-
public class DomConverterRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description DomConverterRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DomConvertergetConverter(Class<?> type)Gets the converter registered with the given type.static DomConverterRegistrygetInstance()Gets the singleton instance of the registry.voidsetDomConverter(Class<?> type, DomConverter converter)Sets the converter to be used for the specified type.
-
-
-
Method Detail
-
getInstance
public static DomConverterRegistry getInstance()
Gets the singleton instance of the registry.- Returns:
- The instance.
-
setDomConverter
public void setDomConverter(Class<?> type, DomConverter converter)
Sets the converter to be used for the specified type.- Parameters:
type- The type.converter- The converter.
-
getConverter
public DomConverter getConverter(Class<?> type)
Gets the converter registered with the given type.- Parameters:
type- The type.- Returns:
- The converter for the given type or
nullif no such converter exists.
-
-