类 ConverterUtil
- java.lang.Object
-
- org.apache.dubbo.common.convert.ConverterUtil
-
public class ConverterUtil extends Object
-
-
构造器概要
构造器 构造器 说明 ConverterUtil(FrameworkModel frameworkModel)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> TconvertIfPossible(Object source, Class<T> targetType)Convert the value of source to target-type value if possibleConverter<?,?>getConverter(Class<?> sourceType, Class<?> targetType)Get the Converter instance fromExtensionLoaderwith the specified source and target type
-
-
-
构造器详细资料
-
ConverterUtil
public ConverterUtil(FrameworkModel frameworkModel)
-
-
方法详细资料
-
getConverter
public Converter<?,?> getConverter(Class<?> sourceType, Class<?> targetType)
Get the Converter instance fromExtensionLoaderwith the specified source and target type- 参数:
sourceType- the source typetargetType- the target type- 返回:
- 另请参阅:
ExtensionLoader.getSupportedExtensionInstances()
-
-