public class DefaultConversionRegistry extends Object implements ConversionRegistry, ConversionLookup
| Constructor and Description |
|---|
DefaultConversionRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<F,T> ConversionPath<F,T> |
findConversion(Class<F> from,
Class<T> to)
Attempt to find a ConversionPath.
|
<F,T> void |
register(Class<F> from,
Class<T> to,
Convertlet<F,T> convertlet)
Register a Convertlet.
|
<F> void |
registerJoker(Class<F> from,
Joker<F> joker)
Register a joker which is a conversion that trumps all other
conversion.
|
public <F,T> void register(Class<F> from, Class<T> to, Convertlet<F,T> convertlet)
ConversionRegistryregister in interface ConversionRegistryfrom - The convert from class.to - The convert to class.convertlet - The Convertlet.public <F> void registerJoker(Class<F> from, Joker<F> joker)
ConversionRegistryNoConversionAvailableException.registerJoker in interface ConversionRegistryF - The class of the from type.from - The from type.joker - The joker.public <F,T> ConversionPath<F,T> findConversion(Class<F> from, Class<T> to)
ConversionLookupfindConversion in interface ConversionLookupfrom - The convert from class.to - The convert to class.Copyright © 2023. All rights reserved.