public static class MiscConverters.StringToEnumConverterCreator<E extends Enum<E>> extends Object implements ConverterCreator, ConverterLoader
Constructor and Description |
---|
StringToEnumConverterCreator() |
Modifier and Type | Method and Description |
---|---|
<S,T> Converter<S,T> |
createConverter(Class<S> sourceClass,
Class<T> targetClass)
Creates a Converter that can convert the
sourceClass to
the targetClass . |
void |
loadConverters()
Create and register converters with the Java object type
conversion framework.
|
public void loadConverters()
ConverterLoader
Converters.registerConverter(Converter)
with the Converter
instance.loadConverters
in interface ConverterLoader
public <S,T> Converter<S,T> createConverter(Class<S> sourceClass, Class<T> targetClass)
ConverterCreator
sourceClass
to
the targetClass
. Returns null
if this creater
doesn't support the class pair.createConverter
in interface ConverterCreator
sourceClass
- The source Class
to converttargetClass
- The target Class
to convert toObject
s