public abstract class ConverterManager extends Object
Modifier and Type | Field and Description |
---|---|
static Object |
DEFAULT_KEY |
Constructor and Description |
---|
ConverterManager() |
Modifier and Type | Method and Description |
---|---|
static <T,V> ChainOfResponsibility<Converter<T,V>,V> |
chainConverters(List<Converter<T,V>> converters) |
abstract <T> T |
convert(Object converterKey,
Object object,
Type targetType,
JConverter context) |
<T> T |
convert(Object object,
Type targetType,
JConverter context) |
void |
register(Converter<?,?> converter) |
abstract void |
register(Object converterKey,
Converter<?,?> converter) |
static ConverterManager |
registerDefaults(ConverterManager converterManager)
Registers default converters in the given converter manager.
|
public static final Object DEFAULT_KEY
public static <T,V> ChainOfResponsibility<Converter<T,V>,V> chainConverters(List<Converter<T,V>> converters)
public static ConverterManager registerDefaults(ConverterManager converterManager)
converterManager
- a converter manager.public void register(Converter<?,?> converter)
public <T> T convert(Object object, Type targetType, JConverter context)
public abstract <T> T convert(Object converterKey, Object object, Type targetType, JConverter context)
Copyright © 2014. All rights reserved.