Package io.micronaut.function.client.aop
Class FunctionClientAdvice
java.lang.Object
io.micronaut.function.client.aop.FunctionClientAdvice
- All Implemented Interfaces:
Interceptor<Object,
,Object> MethodInterceptor<Object,
,Object> Ordered
@Singleton
public class FunctionClientAdvice
extends Object
implements MethodInterceptor<Object,Object>
Implements advice for the
FunctionClient
annotation.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionFunctionClientAdvice
(ConversionService conversionService, FunctionDiscoveryClient discoveryClient, FunctionInvokerChooser functionInvokerChooser) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept
(MethodInvocationContext<Object, Object> context) Extended version of theMethodInterceptor.intercept(InvocationContext)
method that accepts aMethodInvocationContext
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.aop.MethodInterceptor
intercept
-
Constructor Details
-
FunctionClientAdvice
public FunctionClientAdvice(ConversionService conversionService, FunctionDiscoveryClient discoveryClient, FunctionInvokerChooser functionInvokerChooser) Constructor.- Parameters:
conversionService
- The conversion servicediscoveryClient
- discoveryClientfunctionInvokerChooser
- functionInvokerChooser
-
-
Method Details
-
intercept
Description copied from interface:MethodInterceptor
Extended version of theMethodInterceptor.intercept(InvocationContext)
method that accepts aMethodInvocationContext
.- Specified by:
intercept
in interfaceMethodInterceptor<Object,
Object> - Parameters:
context
- The context- Returns:
- The result
-