public class Interceptor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
intercept(java.lang.Object self,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.util.concurrent.Callable<?> callable)
A magic method used to wrap public method calls in classes
patched by ByteBuddy and acting as proxies.
|
@RuntimeType public static java.lang.Object intercept(@This java.lang.Object self, @Origin java.lang.reflect.Method method, @AllArguments java.lang.Object[] args, @SuperCall java.util.concurrent.Callable<?> callable) throws java.lang.Throwable
self
- The reference to the original instance.method
- The reference to the original method.args
- The reference to method args.callable
- The reference to the non-patched callable to avoid call recursion.java.lang.Throwable