T - The declaring typeR - The result of the method callpublic interface MethodInterceptor<T,R> extends Interceptor<T,R>
Interceptor and provides an interface more specific to method interception.HOTSWAP, LAZY, PROXY_TARGETHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description | 
|---|---|
default R | 
intercept(InvocationContext<T,R> context)
Intercepts an execution from a declared  
Around advice. | 
R | 
intercept(MethodInvocationContext<T,R> context)
Extended version of the  
intercept(InvocationContext) method that accepts a MethodInvocationContext. | 
R intercept(MethodInvocationContext<T,R> context)
intercept(InvocationContext) method that accepts a MethodInvocationContext.context - The contextdefault R intercept(InvocationContext<T,R> context)
InterceptorAround advice. The implementation can either call InvocationContext.proceed() to return the original value or provide a replacement valueintercept in interface Interceptor<T,R>context - The interception context