Class JavassistProxyInvocation<T>

    • Constructor Detail

      • JavassistProxyInvocation

        public JavassistProxyInvocation​(T proxy,
                                        Method method,
                                        Object[] args)
    • Method Detail

      • invoke

        public Object invoke​(T target)
                      throws Throwable
        Executes this invocation on a target object of the same type.
        Specified by:
        invoke in interface ProxyInvocation<T>
        Parameters:
        target - The target
        Returns:
        The return value of the invocation
        Throws:
        Throwable - If an error is thrown by the invocation
      • getMethod

        public Method getMethod()
        Return the method on which the proxy invocation was made.
        Specified by:
        getMethod in interface ProxyInvocation<T>
        Returns:
        The method
      • getProxy

        public T getProxy()
        Returns the proxy on which the method was invoked.
        Specified by:
        getProxy in interface ProxyInvocation<T>
        Returns:
        The proxy
      • getArguments

        public Object[] getArguments()
        The arguments passed to the target proxy invocation.
        Specified by:
        getArguments in interface ProxyInvocation<T>
        Returns:
        The arguments