Interface ConversionFinder
- All Known Implementing Classes:
MarshallingContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A pluggable strategy for discovering
Conversion functions between type pairs.
Implementations are passed to the ConfigurableConverter constructor and are consulted in order before
the built-in BasicConverter reflection logic.
Return findConversion(Class, Class) to indicate that this finder has no conversion for the
given type pair; the next registered finder (or the built-in logic) will be tried instead.
Example:
ConfigurableConverter
See Also:
-
Method Summary
Modifier and TypeMethodDescriptionConversion<?,?> findConversion(Class<?> inType, Class<?> outType) Returns aConversionfor the specified input/output type pair, ornull if this finder has no conversion for the pair.
-
Method Details
-
findConversion
Returns aConversionfor the specified input/output type pair, ornull if this finder has no conversion for the pair.- Parameters:
inType- The input type class.outType- The output type class.- Returns:
- A
Conversionfunction, ornull if no conversion is available.
-