Package org.apache.ofbiz.base.conversion
Interface ConverterCreator
-
- All Known Implementing Classes:
CollectionConverters.ArrayCreator
,Converters.PassThruConverterCreator
,MiscConverters.StringToEnumConverterCreator
public interface ConverterCreator
ConverterCreator interface. Classes implement this interface to create a converter that can convert one Java object type to another.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S,T>
Converter<S,T>createConverter(java.lang.Class<S> sourceClass, java.lang.Class<T> targetClass)
Creates a Converter that can convert thesourceClass
to thetargetClass
.
-
-
-
Method Detail
-
createConverter
<S,T> Converter<S,T> createConverter(java.lang.Class<S> sourceClass, java.lang.Class<T> targetClass)
Creates a Converter that can convert thesourceClass
to thetargetClass
. Returnsnull
if this creater doesn't support the class pair.- Parameters:
sourceClass
- The sourceClass
to converttargetClass
- The targetClass
to convert to- Returns:
- a converter that can convert
Object
s
-
-