类 GenericTypeUtils


  • public class GenericTypeUtils
    extends java.lang.Object
    泛型类工具(用于隔离Spring的代码)
    从以下版本开始:
    2021-09-03
    作者:
    noear, hubin
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.lang.Class<?>[] resolveTypeArguments​(java.lang.Class<?> clazz, java.lang.Class<?> genericIfc)
      获取泛型工具助手
      static void setGenericTypeResolver​(IGenericTypeResolver genericTypeResolver)
      设置泛型工具助手。
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • GenericTypeUtils

        public GenericTypeUtils()
    • 方法详细资料

      • resolveTypeArguments

        public static java.lang.Class<?>[] resolveTypeArguments​(java.lang.Class<?> clazz,
                                                                java.lang.Class<?> genericIfc)
        获取泛型工具助手
      • setGenericTypeResolver

        public static void setGenericTypeResolver​(IGenericTypeResolver genericTypeResolver)
        设置泛型工具助手。如果不想使用Spring封装,可以使用前替换掉