Interface JexxaInvocationHandler

All Known Implementing Classes:
DefaultInvocationHandler

public interface JexxaInvocationHandler
  • Method Details

    • invoke

      Object invoke(Method method, Object object, Object[] args)
      This method performs a method invocation on given method.
      Parameters:
      method - Method that should be called. Must not be null
      object - concrete instance of the object on which the method should be called
      args - attributes
      Returns:
      result of the method
      Throws:
      InvocationTargetRuntimeException - includes occurred exceptions.
    • invoke

      void invoke(Object targetObject, SerializableRunnable runnable)
      This method performs a method invocation on given runnable.
      Parameters:
      targetObject - to invoke method on
      runnable - functional interface to be executed
      Throws:
      InvocationTargetRuntimeException - includes occurred exceptions.
    • invoke

      <T> void invoke(Object targetObject, SerializableConsumer<T> consumer, T argument)
      This method performs a method invocation on given consumer.
      Parameters:
      targetObject - to invoke method on
      consumer - functional interface to be executed
      argument - for the functional interface
      Throws:
      InvocationTargetRuntimeException - includes occurred exceptions.
    • invoke

      <T> T invoke(Object targetObject, SerializableSupplier<T> supplier)
      This method performs a method invocation on given supplier.
      Parameters:
      targetObject - to invoke method on
      supplier - functional interface to be executed
      Returns:
      T return value of the functional interface
      Throws:
      InvocationTargetRuntimeException - includes occurred exceptions.
    • invoke

      <T, R> R invoke(Object targetObject, SerializableFunction<T,R> function, T argument)
      This method performs a method invocation on given function.
      Parameters:
      targetObject - to invoke method on
      function - functional interface to be executed
      argument - for the functional interface
      Returns:
      T return value of the functional interface
      Throws:
      InvocationTargetRuntimeException - includes occurred exceptions.