Interface Invocation

    • Method Detail

      • invoke

        Object invoke()
               throws Throwable
        Invoke the underlying method returning the result.

        This will return null for void methods.

        Throws:
        Throwable
      • result

        void result​(Object result)
        Set the result that will be returned to the caller.

        This will replace a prior result set by calling #invoke or can be used to provide a result allowing to skip calling #invoke altogether.

        Parameters:
        result - The result that will be returned to the caller.
      • arguments

        Object[] arguments()
        Return the arguments used for this invocation.
      • method

        Method method()
        Return the method being called for this invocation.
      • instance

        Object instance()
        Return the 'this' instance of the invocation.

        This is typically used when invoking fallback/recovery methods.