Class Invocation.Call<T>

java.lang.Object
io.avaje.inject.aop.Invocation.Base<T>
io.avaje.inject.aop.Invocation.Call<T>
All Implemented Interfaces:
Invocation
Enclosing interface:
Invocation

public static final class Invocation.Call<T> extends Invocation.Base<T>
Callable based Invocation with checked exceptions.
  • Constructor Details

  • Method Details

    • invoke

      public Object invoke() throws Throwable
      Description copied from interface: Invocation
      Invoke the underlying method returning the result.
      Returns:
      The result of the method call. This will return null for void methods.
      Throws:
      Throwable - Exception thrown by underlying method
    • finalResult

      public T finalResult()
      Description copied from class: Invocation.Base
      Return the final invocation result.
      Overrides:
      finalResult in class Invocation.Base<T>
    • wrap

      public Invocation.Base<T> wrap(MethodInterceptor methodInterceptor)
      Description copied from class: Invocation.Base
      Wrap this invocation using a methodInterceptor returning the wrapped call.

      This invocation is effectively nested inside the returned invocation.

      Specified by:
      wrap in class Invocation.Base<T>
      Parameters:
      methodInterceptor - The method interceptor to use to wrap this call with
      Returns:
      The wrapped call