- All Implemented Interfaces:
Invocation
- Enclosing interface:
Invocation
Runnable based Invocation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.avaje.inject.aop.Invocation
Invocation.Base<T>, Invocation.Call<T>, Invocation.CheckedRunnable, Invocation.CheckedSupplier<T>, Invocation.Run -
Constructor Summary
ConstructorsConstructorDescriptionRun(Invocation.CheckedRunnable delegate) Create with a given closure to run. -
Method Summary
Modifier and TypeMethodDescriptioninvoke()Invoke the underlying method returning the result.wrap(MethodInterceptor methodInterceptor) Wrap this invocation using a methodInterceptor returning the wrapped call.Methods inherited from class io.avaje.inject.aop.Invocation.Base
arguments, arguments, finalResult, instance, method, result, withMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.avaje.inject.aop.Invocation
invokeUnchecked
-
Constructor Details
-
Run
Create with a given closure to run.
-
-
Method Details
-
invoke
Description copied from interface:InvocationInvoke 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
-
wrap
Description copied from class:Invocation.BaseWrap this invocation using a methodInterceptor returning the wrapped call.This invocation is effectively nested inside the returned invocation.
- Specified by:
wrapin classInvocation.Base<Void>- Parameters:
methodInterceptor- The method interceptor to use to wrap this call with- Returns:
- The wrapped call
-