Class InterceptorInvocationHandler

    • Constructor Detail

      • InterceptorInvocationHandler

        public InterceptorInvocationHandler​(Interceptor interceptor)
        Construct a new instance.
        Parameters:
        interceptor - the interceptor to send invocations through
    • Method Detail

      • invoke

        public Object invoke​(Object proxy,
                             Method method,
                             Object[] args)
                      throws Throwable
        Handle a proxy method invocation.
        Specified by:
        invoke in interface InvocationHandler
        Parameters:
        proxy - the proxy instance
        method - the invoked method
        args - the method arguments
        Returns:
        the result of the method call
        Throws:
        Throwable - the exception to thrown from the method invocation on the proxy instance, if any