Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.convert
Class CachingConversionService

java.lang.Object
  extended by org.springframework.core.convert.support.GenericConversionService
      extended by org.springframework.core.convert.support.DefaultConversionService
          extended by 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

Constructor Summary
CachingConversionService()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachingConversionService

public CachingConversionService()
Method Detail

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

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d