类 Proxy


  • public abstract class Proxy
    extends Object
    Proxy.
    • 字段详细资料

      • THROW_UNSUPPORTED_INVOKER

        public static final InvocationHandler THROW_UNSUPPORTED_INVOKER
    • 方法详细资料

      • getProxy

        public static Proxy getProxy(Class<?>... ics)
        Get proxy.
        参数:
        ics - interface class array.
        返回:
        Proxy instance.
      • getProxy

        public static Proxy getProxy(ClassLoader cl,
                                     Class<?>... ics)
        Get proxy.
        参数:
        cl - class loader.
        ics - interface class array.
        返回:
        Proxy instance.
      • newInstance

        public Object newInstance()
        get instance with default handler.
        返回:
        instance.
      • newInstance

        public abstract Object newInstance(InvocationHandler handler)
        get instance with special handler.
        返回:
        instance.