Interface ConverterManager
- All Known Implementing Classes:
ConversionServiceConverterManager, ConverterManagerImpl
Deprecated.
A simple interface to be implemented to provide type conversion functionality.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class<?> fromClass, @Nullable String syntax, Class<?> toClass) Deprecated.Determine whether this converter manager is able to carry out a specified conversion.<T> @Nullable TDeprecated.Convert a given source object with an optional LDAP syntax to an instance of a given class.
-
Method Details
-
canConvert
Deprecated.Determine whether this converter manager is able to carry out a specified conversion.- Parameters:
fromClass- Convert from thefromClass.syntax- Using the LDAP syntax (may be null).toClass- To thetoClass.- Returns:
Trueif the conversion is supported,falseotherwise.
-
convert
Deprecated.Convert a given source object with an optional LDAP syntax to an instance of a given class.- 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.
- Throws:
ConverterException- If the conversion can not be successfully completed.
-
ConversionServicedirectly