Package com.bc.ceres.binding.dom
Class DomConverterRegistry
java.lang.Object
com.bc.ceres.binding.dom.DomConverterRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConverter
(Class<?> type) Gets the converter registered with the given type.static DomConverterRegistry
Gets the singleton instance of the registry.void
setDomConverter
(Class<?> type, DomConverter converter) Sets the converter to be used for the specified type.
-
Constructor Details
-
DomConverterRegistry
public DomConverterRegistry()
-
-
Method Details
-
getInstance
Gets the singleton instance of the registry.- Returns:
- The instance.
-
setDomConverter
Sets the converter to be used for the specified type.- Parameters:
type
- The type.converter
- The converter.
-
getConverter
Gets the converter registered with the given type.- Parameters:
type
- The type.- Returns:
- The converter for the given type or
null
if no such converter exists.
-