Package org.apache.ofbiz.base.conversion
Class CollectionConverters.ArrayCreator
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.CollectionConverters.ArrayCreator
-
- All Implemented Interfaces:
ConverterCreator
,ConverterLoader
- Enclosing class:
- CollectionConverters
public static class CollectionConverters.ArrayCreator extends java.lang.Object implements ConverterCreator, ConverterLoader
-
-
Constructor Summary
Constructors Constructor Description ArrayCreator()
-
Method Summary
All Methods Instance Methods Concrete 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
.void
loadConverters()
Create and register converters with the Java object type conversion framework.
-
-
-
Method Detail
-
loadConverters
public void loadConverters()
Description copied from interface:ConverterLoader
Create and register converters with the Java object type conversion framework. If the converter extends one of the converter abstract classes, then the converter will register itself when an instance is created. Otherwise, callConverters.registerConverter(Converter)
with theConverter
instance.- Specified by:
loadConverters
in interfaceConverterLoader
-
createConverter
public <S,T> Converter<S,T> createConverter(java.lang.Class<S> sourceClass, java.lang.Class<T> targetClass)
Description copied from interface:ConverterCreator
Creates a Converter that can convert thesourceClass
to thetargetClass
. Returnsnull
if this creater doesn't support the class pair.- Specified by:
createConverter
in interfaceConverterCreator
- Parameters:
sourceClass
- The sourceClass
to converttargetClass
- The targetClass
to convert to- Returns:
- a converter that can convert
Object
s
-
-