Class InvocationContext

java.lang.Object
io.jexxa.adapterapi.invocation.InvocationContext
Direct Known Subclasses:
ConsumerInvocationContext, FunctionInvocationContext, MethodInvocationContext, RunnableInvocationContext, SupplierInvocationContext

public abstract class InvocationContext extends Object
  • Constructor Details

  • Method Details

    • invoke

      public abstract void invoke()
      This method performs a method invocation on given method.
      Throws:
      InvocationTargetRuntimeException - forwards exception from Java's reflective API because it cannot be handled here in a meaningful way
    • getMethod

      public abstract Method getMethod()
    • getTarget

      public Object getTarget()
    • getTarget

      public <T> T getTarget(Class<T> clazz)
    • getArgs

      public abstract Object[] getArgs()
    • getReturnValue

      public abstract Object getReturnValue()
    • getReturnValue

      public <T> T getReturnValue(Class<T> clazz)
    • getArgTypes

      public Class<?>[] getArgTypes()
    • proceed

      public void proceed()