- java.lang.Object
-
- io.avaje.inject.aop.Invocation.Build<T>
-
- io.avaje.inject.aop.Invocation.Call<T>
-
- All Implemented Interfaces:
Invocation
- Enclosing interface:
- Invocation
public static final class Invocation.Call<T> extends Invocation.Build<T>
Callable based Invocation with checked exceptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.avaje.inject.aop.Invocation
Invocation.Build<T>, Invocation.Call<T>, Invocation.CheckedRunnable, Invocation.CheckedSupplier<T>, Invocation.Run
-
-
Constructor Summary
Constructors Constructor Description Call(Invocation.CheckedSupplier<T> delegate)Create with a given supplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TfinalResult()Return the final invocation result.Objectinvoke()Invoke the underlying method returning the result.Invocation.Build<T>wrap(MethodInterceptor methodInterceptor)Wrap this invocation using a methodInterceptor returning the wrapped call.
-
-
-
Constructor Detail
-
Call
public Call(Invocation.CheckedSupplier<T> delegate)
Create with a given supplier.
-
-
Method Detail
-
invoke
public Object invoke() throws Throwable
Description copied from interface:InvocationInvoke the underlying method returning the result.This will return null for void methods.
- Throws:
Throwable
-
finalResult
public T finalResult()
Description copied from class:Invocation.BuildReturn the final invocation result.- Overrides:
finalResultin classInvocation.Build<T>
-
wrap
public Invocation.Build<T> wrap(MethodInterceptor methodInterceptor)
Description copied from class:Invocation.BuildWrap this invocation using a methodInterceptor returning the wrapped call.This invocation is effectively nested inside the returned invocation.
- Specified by:
wrapin classInvocation.Build<T>- Parameters:
methodInterceptor- The method interceptor to use to wrap this call with- Returns:
- The wrapped call
-
-