类 Proxies


  • public class Proxies
    extends java.lang.Object
    Utils method for reflect Proxy
    • 构造器概要

      构造器 
      构造器 说明
      Proxies()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <T> T newProxy​(java.lang.Class<T> cls, java.lang.reflect.InvocationHandler handler)
      Create Proxy form interface.
      • 从类继承的方法 java.lang.Object

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

      • Proxies

        public Proxies()
    • 方法详细资料

      • newProxy

        public static <T> T newProxy​(java.lang.Class<T> cls,
                                     java.lang.reflect.InvocationHandler handler)
        Create Proxy form interface. This is a convenient alias for Proxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)
        类型参数:
        T - the interface type
        参数:
        cls - the interface class
        handler - the InvocationHandler
        返回:
        new instance implement interface