eu.esdihumboldt.hale.common.convert
Class CachingConversionService
java.lang.Object
org.springframework.core.convert.support.GenericConversionService
org.springframework.core.convert.support.DefaultConversionService
eu.esdihumboldt.hale.common.convert.CachingConversionService
- All Implemented Interfaces:
- org.springframework.core.convert.ConversionService, org.springframework.core.convert.converter.ConverterRegistry, org.springframework.core.convert.support.ConfigurableConversionService
public class CachingConversionService
- extends org.springframework.core.convert.support.DefaultConversionService
Conversion service that caches converters retrieved for type descriptors.
- Author:
- Simon Templer
Method Summary |
void |
addConverter(org.springframework.core.convert.converter.Converter<?,?> converter)
|
void |
addConverter(org.springframework.core.convert.converter.GenericConverter converter)
|
void |
addConverterFactory(org.springframework.core.convert.converter.ConverterFactory<?,?> converterFactory)
|
protected org.springframework.core.convert.converter.GenericConverter |
getConverter(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
|
void |
removeConvertible(Class<?> sourceType,
Class<?> targetType)
|
Methods inherited from class org.springframework.core.convert.support.DefaultConversionService |
addDefaultConverters |
Methods inherited from class org.springframework.core.convert.support.GenericConversionService |
addConverter, canConvert, canConvert, convert, convert, convert, convertNullSource, getDefaultConverter, toString |
CachingConversionService
public CachingConversionService()
addConverter
public void addConverter(org.springframework.core.convert.converter.GenericConverter converter)
- Specified by:
addConverter
in interface org.springframework.core.convert.converter.ConverterRegistry
- Overrides:
addConverter
in class org.springframework.core.convert.support.GenericConversionService
addConverter
public void addConverter(org.springframework.core.convert.converter.Converter<?,?> converter)
- Specified by:
addConverter
in interface org.springframework.core.convert.converter.ConverterRegistry
- Overrides:
addConverter
in class org.springframework.core.convert.support.GenericConversionService
addConverterFactory
public void addConverterFactory(org.springframework.core.convert.converter.ConverterFactory<?,?> converterFactory)
- Specified by:
addConverterFactory
in interface org.springframework.core.convert.converter.ConverterRegistry
- Overrides:
addConverterFactory
in class org.springframework.core.convert.support.GenericConversionService
removeConvertible
public void removeConvertible(Class<?> sourceType,
Class<?> targetType)
- Specified by:
removeConvertible
in interface org.springframework.core.convert.converter.ConverterRegistry
- Overrides:
removeConvertible
in class org.springframework.core.convert.support.GenericConversionService
getConverter
protected org.springframework.core.convert.converter.GenericConverter getConverter(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
- Overrides:
getConverter
in class org.springframework.core.convert.support.GenericConversionService
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d