Package io.jexxa.adapterapi.invocation
Interface JexxaInvocationHandler
- All Known Implementing Classes:
DefaultInvocationHandler
public interface JexxaInvocationHandler
-
Method Summary
Modifier and TypeMethodDescription<T> voidinvoke(Object targetObject, SerializableConsumer<T> consumer, T argument) This method performs a method invocation on given consumer.<T,R> R invoke(Object targetObject, SerializableFunction<T, R> function, T argument) This method performs a method invocation on given function.voidinvoke(Object targetObject, SerializableRunnable runnable) This method performs a method invocation on given runnable.<T> Tinvoke(Object targetObject, SerializableSupplier<T> supplier) This method performs a method invocation on given supplier.This method performs a method invocation on given method.
-
Method Details
-
invoke
This method performs a method invocation on given method.- Parameters:
method- Method that should be called. Must not be nullobject- concrete instance of the object on which the method should be calledargs- attributes- Returns:
- result of the method
- Throws:
InvocationTargetRuntimeException- includes occurred exceptions.
-
invoke
This method performs a method invocation on given runnable.- Parameters:
targetObject- to invoke method onrunnable- functional interface to be executed- Throws:
InvocationTargetRuntimeException- includes occurred exceptions.
-
invoke
This method performs a method invocation on given consumer.- Parameters:
targetObject- to invoke method onconsumer- functional interface to be executedargument- for the functional interface- Throws:
InvocationTargetRuntimeException- includes occurred exceptions.
-
invoke
This method performs a method invocation on given supplier.- Parameters:
targetObject- to invoke method onsupplier- functional interface to be executed- Returns:
- T return value of the functional interface
- Throws:
InvocationTargetRuntimeException- includes occurred exceptions.
-
invoke
This method performs a method invocation on given function.- Parameters:
targetObject- to invoke method onfunction- functional interface to be executedargument- for the functional interface- Returns:
- T return value of the functional interface
- Throws:
InvocationTargetRuntimeException- includes occurred exceptions.
-