Class SpringConverterAdapter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.ConditionalConverter, org.springframework.core.convert.converter.ConditionalGenericConverter, org.springframework.core.convert.converter.GenericConverter

    public class SpringConverterAdapter
    extends java.lang.Object
    implements org.springframework.core.convert.converter.ConditionalGenericConverter
    Spring Converter Adapter based on Microsphere Converters
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Converter, Converter, ConfigurableConversionService
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter

        org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)  
      java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()  
      boolean matches​(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringConverterAdapter

        public SpringConverterAdapter()
    • Method Detail

      • matches

        public boolean matches​(org.springframework.core.convert.TypeDescriptor sourceType,
                               org.springframework.core.convert.TypeDescriptor targetType)
        Specified by:
        matches in interface org.springframework.core.convert.converter.ConditionalConverter
      • getConvertibleTypes

        public java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
        Specified by:
        getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter
      • convert

        public java.lang.Object convert​(java.lang.Object source,
                                        org.springframework.core.convert.TypeDescriptor sourceType,
                                        org.springframework.core.convert.TypeDescriptor targetType)
        Specified by:
        convert in interface org.springframework.core.convert.converter.GenericConverter