接口 NacosConfigConverter<T>
- 类型参数:
T- the target type that wanted
public interface NacosConfigConverter<T>
Nacos Config Converter.
- 从以下版本开始:
- 0.2.0
- 作者:
- Mercy
-
方法概要
-
方法详细资料
-
canConvert
can convert to be target type or not.- 参数:
targetType- the type of target- 返回:
- If can , return
true, orfalse
-
convert
Convert the Nacos' config of type S to target type T.- 参数:
config- the Naocs's config to convert, which must be an instance of S (nevernull)- 返回:
- the converted object, which must be an instance of T (potentially
null)
-