org.springframework.core.convert.support
Class GenericConversionService.ConverterFactoryAdapter

java.lang.Object
  extended by org.springframework.core.convert.support.GenericConversionService.ConverterFactoryAdapter
All Implemented Interfaces:
GenericConverter
Enclosing class:
GenericConversionService

private final class GenericConversionService.ConverterFactoryAdapter
extends java.lang.Object
implements GenericConverter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair
 
Field Summary
private  ConverterFactory<java.lang.Object,java.lang.Object> converterFactory
           
private  GenericConverter.ConvertiblePair typeInfo
           
 
Constructor Summary
GenericConversionService.ConverterFactoryAdapter(GenericConverter.ConvertiblePair typeInfo, ConverterFactory<?,?> converterFactory)
           
 
Method Summary
 java.lang.Object convert(java.lang.Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
          Convert the source to the targetType described by the TypeDescriptor.
 java.util.Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
          Return the source and target types which this converter can convert between.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

typeInfo

private final GenericConverter.ConvertiblePair typeInfo

converterFactory

private final ConverterFactory<java.lang.Object,java.lang.Object> converterFactory
Constructor Detail

GenericConversionService.ConverterFactoryAdapter

public GenericConversionService.ConverterFactoryAdapter(GenericConverter.ConvertiblePair typeInfo,
                                                        ConverterFactory<?,?> converterFactory)
Method Detail

getConvertibleTypes

public java.util.Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
Description copied from interface: GenericConverter
Return the source and target types which this converter can convert between.

Each entry is a convertible source-to-target type pair.

Specified by:
getConvertibleTypes in interface GenericConverter

convert

public java.lang.Object convert(java.lang.Object source,
                                TypeDescriptor sourceType,
                                TypeDescriptor targetType)
Description copied from interface: GenericConverter
Convert the source to the targetType described by the TypeDescriptor.

Specified by:
convert in interface GenericConverter
Parameters:
source - the source object to convert (may be null)
sourceType - the type descriptor of the field we are converting from
targetType - the type descriptor of the field we are converting to
Returns:
the converted object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object