java.lang.Object
io.avaje.inject.aop.Invocation.Base<T>
io.avaje.inject.aop.Invocation.Call<T>
- All Implemented Interfaces:
Invocation
- Enclosing interface:
Invocation
Callable based Invocation with checked exceptions.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the final invocation result.invoke()
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, instance, method, result, with
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.avaje.inject.aop.Invocation
invokeUnchecked
-
Constructor Details
-
Call
Create with a given supplier.
-
-
Method Details
-
invoke
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
Description copied from class:Invocation.Base
Return the final invocation result.- Overrides:
finalResult
in classInvocation.Base<T>
-
wrap
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 classInvocation.Base<T>
- Parameters:
methodInterceptor
- The method interceptor to use to wrap this call with- Returns:
- The wrapped call
-