Class MethodProxy


  • public class MethodProxy
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodProxy()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void assertInvocationHandlerNotNull​(java.lang.reflect.InvocationHandler invocationHandler)  
      static void proxy​(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.reflect.InvocationHandler invocationHandler)
      Add a proxy for a method declared in class declaringClass.
      static void proxy​(java.lang.reflect.Method method, java.lang.reflect.InvocationHandler invocationHandler)
      Add a proxy for this method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MethodProxy

        public MethodProxy()
    • Method Detail

      • proxy

        public static void proxy​(java.lang.reflect.Method method,
                                 java.lang.reflect.InvocationHandler invocationHandler)
        Add a proxy for this method. Each call to the method will be routed to the invocationHandler instead.
      • proxy

        public static void proxy​(java.lang.Class<?> declaringClass,
                                 java.lang.String methodName,
                                 java.lang.reflect.InvocationHandler invocationHandler)
        Add a proxy for a method declared in class declaringClass. Each call to the method will be routed to the invocationHandler instead.
      • assertInvocationHandlerNotNull

        private static void assertInvocationHandlerNotNull​(java.lang.reflect.InvocationHandler invocationHandler)