Class EntityConverter<T extends org.springframework.core.convert.ConversionService & org.springframework.core.convert.converter.ConverterRegistry>
java.lang.Object
com.foreach.across.modules.entity.converters.EntityConverter<T>
- All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter,org.springframework.core.convert.converter.ConditionalGenericConverter,org.springframework.core.convert.converter.GenericConverter
public class EntityConverter<T extends org.springframework.core.convert.ConversionService & org.springframework.core.convert.converter.ConverterRegistry>
extends Object
implements org.springframework.core.convert.converter.ConditionalGenericConverter
Converter to convert arbitrary input to an entity
that is fully registered with the EntityRegistry.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair>(non-Javadoc)booleanmatches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
-
Constructor Details
-
EntityConverter
-
-
Method Details
-
getConvertibleTypes
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()(non-Javadoc)- Specified by:
getConvertibleTypesin interfaceorg.springframework.core.convert.converter.GenericConverter- See Also:
-
GenericConverter.getConvertibleTypes()
-
convert
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convertin interfaceorg.springframework.core.convert.converter.GenericConverter
-
matches
public boolean matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
matchesin interfaceorg.springframework.core.convert.converter.ConditionalConverter
-