| Package | Description |
|---|---|
| com.hammurapi.convert |
| Modifier and Type | Method and Description |
|---|---|
static <S,T> ConverterClosure<S,T> |
ConvertingService.getConverter(Class<S> sourceType,
Class<T> targetType)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static <S,T> ConverterClosure<S,T> |
ContextConverterFactory.getConverter(Class<S> sourceClass,
Class<T> targetInterface) |
static <S,T> ConverterClosure<S,T> |
ConvertingService.getConverter(Class<S> sourceType,
Class<T> targetType,
ClassLoader classLoader)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static <S,T> ConverterClosure<S,T> |
ConvertingService.getConverter(Class<S> sourceType,
Class<T> targetType,
Context context)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static <S,T> ConverterClosure<S,T> |
ConvertingService.getConverter(Class<S> sourceType,
Class<T> targetType,
Context context,
ClassLoader classLoader)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static ConverterClosure |
DuckConverterFactory.getConverter(Class sourceClass,
Class targetInterface,
boolean lenient) |