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
Modifier and TypeMethodDescription<S,
T> Converter<S, T> createConverter
(Class<S> sourceClass, Class<T> targetClass) Creates a Converter that can convert thesourceClass
to thetargetClass
.
-
Method Details
-
createConverter
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
-