@FunctionalInterface public interface MethodReaderInterceptorReturns
The intercept method is called whenever a method is invoked on the MethodReader. It provides an opportunity to modify, inspect, or take action based on the method invocation.
| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(Method m,
Object o,
Object[] args,
Invocation invocation)
Intercepts a method invocation.
|
Object intercept(Method m, Object o, Object[] args, Invocation invocation) throws InvocationTargetException
m - the method that is being invokedo - the object the underlying method is invoked fromargs - the arguments used for the method callinvocation - a functional interface representing the invocation of the methodInvocationTargetException - if the invoked method throws an exceptionCopyright © 2024. All rights reserved.