Class ConversionServiceConverterManager
java.lang.Object
org.springframework.ldap.odm.typeconversion.impl.ConversionServiceConverterManager
- All Implemented Interfaces:
ConverterManager
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorsConstructorDescriptionConversionServiceConverterManager
(org.springframework.core.convert.support.GenericConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class<?> fromClass, String syntax, Class<?> toClass) Determine whether this converter manager is able to carry out a specified conversion.<T> T
Convert a given source object with an optional LDAP syntax to an instance of a given class.
-
Constructor Details
-
ConversionServiceConverterManager
public ConversionServiceConverterManager(org.springframework.core.convert.support.GenericConversionService conversionService) -
ConversionServiceConverterManager
public ConversionServiceConverterManager()
-
-
Method Details
-
canConvert
Description copied from interface:ConverterManager
Determine whether this converter manager is able to carry out a specified conversion.- Specified by:
canConvert
in interfaceConverterManager
- Parameters:
fromClass
- Convert from thefromClass
.syntax
- Using the LDAP syntax (may be null).toClass
- To thetoClass
.- Returns:
True
if the conversion is supported,false
otherwise.
-
convert
Description copied from interface:ConverterManager
Convert a given source object with an optional LDAP syntax to an instance of a given class.- Specified by:
convert
in interfaceConverterManager
- Type Parameters:
T
- The class to convert to.- Parameters:
source
- The object to convert.syntax
- The LDAP syntax to use (may be null).toClass
- The class to convert to.- Returns:
- The converted object.
-