@Singleton public class FunctionClientAdvice extends Object implements MethodInterceptor<Object,Object>
FunctionClient
annotation.ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
FunctionClientAdvice(FunctionDiscoveryClient discoveryClient,
FunctionInvokerChooser functionInvokerChooser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
intercept(MethodInvocationContext<Object,Object> context)
Extended version of the
MethodInterceptor.intercept(InvocationContext) method that accepts a MethodInvocationContext . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
public FunctionClientAdvice(FunctionDiscoveryClient discoveryClient, FunctionInvokerChooser functionInvokerChooser)
discoveryClient
- discoveryClientfunctionInvokerChooser
- functionInvokerChooser@Nullable public Object intercept(MethodInvocationContext<Object,Object> context)
MethodInterceptor
MethodInterceptor.intercept(InvocationContext)
method that accepts a MethodInvocationContext
.intercept
in interface MethodInterceptor<Object,Object>
context
- The context