接口的使用
cn.taketoday.core.conversion.GenericConverter
使用GenericConverter的程序包
程序包
说明
Type Conversion System
Default implementation of the type conversion system.
-
cn.taketoday.core.conversion中GenericConverter的使用
修饰符和类型接口说明interfaceAGenericConverterthat may conditionally execute based on attributes of thesourceandtargetTypeDescriptor.修饰符和类型方法说明ConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Class<?> sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Class<?> sourceType, Class<?> targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Object sourceObject, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Object sourceObject, Class<?> targetType) Hook method to lookup the converter for a given sourceType/targetType pair.修饰符和类型方法说明voidConverterRegistry.addConverter(GenericConverter converter) Add a generic converter to this registry. -
cn.taketoday.core.conversion.support中GenericConverter的使用
修饰符和类型方法说明GenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.protected GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.