Class GenericTypeUtils
java.lang.Object
com.github.yulichang.toolkit.reflect.GenericTypeUtils
泛型类工具(用于隔离Spring的代码)
- Since:
- 2021-09-03
- Author:
- noear, hubin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean判断是否有自定泛型提取类或能否加载SpringCore进行泛型提取static Class<?>[]resolveTypeArguments(Class<?> clazz, Class<?> genericIfc) 获取泛型工具助手static voidsetGenericTypeResolver(IGenericTypeResolver genericTypeResolver) 设置泛型工具助手。
-
Constructor Details
-
GenericTypeUtils
public GenericTypeUtils()
-
-
Method Details
-
resolveTypeArguments
获取泛型工具助手 -
setGenericTypeResolver
设置泛型工具助手。如果不想使用Spring封装,可以使用前替换掉 -
hasGenericTypeResolver
public static boolean hasGenericTypeResolver()判断是否有自定泛型提取类或能否加载SpringCore进行泛型提取- Returns:
- 是否有实现
- Since:
- 3.5.4
-