public interface ConverterFactory
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Type<?> sourceType,
Type<?> destinationType)
Verify if there is an anonymous converter that can handle the conversion
between two types
|
Converter<Object,Object> |
getConverter(String converterId)
Lookup a converter by id
|
Converter<Object,Object> |
getConverter(Type<?> sourceType,
Type<?> destinationType)
Lookup for an anonymous converter that can handle the conversion between
these two types
|
boolean |
hasConverter(String converterId)
Check if an identified converter exists
|
<S,D> void |
registerConverter(Converter<S,D> converter)
Register a generic and (anonymous) converter
|
<S,D> void |
registerConverter(String converterId,
Converter<S,D> converter)
Register an identified converter
|
void |
setMapperFacade(MapperFacade mapperFacade)
Sets the MapperFactory which will be used by this ConverterFactory to obtain
a MapperFacade needed by it's registered converters.
|
void setMapperFacade(MapperFacade mapperFacade)
mapperFacade - Converter<Object,Object> getConverter(Type<?> sourceType, Type<?> destinationType)
sourceType - destinationType - Converter<Object,Object> getConverter(String converterId)
converterId - <S,D> void registerConverter(Converter<S,D> converter)
converter - <S,D> void registerConverter(String converterId, Converter<S,D> converter)
converterId - converter - boolean hasConverter(String converterId)
converterId - Copyright © 2019 Glasnost. All rights reserved.