Interface ProxyInvocation<T>

  • All Known Implementing Classes:
    JavassistProxyInvocation

    public interface ProxyInvocation<T>

    Describes a method invocation on a proxy.

    Since:
    1.0
    Author:
    Brennan Spies
    • Method Detail

      • invoke

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

        Method getMethod()
        Return the method on which the proxy invocation was made.
        Returns:
        The method
      • getProxy

        T getProxy()
        Returns the proxy on which the method was invoked.
        Returns:
        The proxy
      • getArguments

        Object[] getArguments()
        The arguments passed to the target proxy invocation.
        Returns:
        The arguments