public interface MethodInterceptor extends Callback
Enhancer callback which provides for "around advice".| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(Object obj,
Method method,
Object[] args,
MethodProxy proxy)
All generated proxied methods call this method instead of the original method.
|
Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable
obj - "this", the enhanced objectmethod - intercepted Methodargs - argument array; primitive types are wrappedproxy - used to invoke super (non-intercepted method); may be called
as many times as neededThrowable - any exception may be thrown; if so, super method will not be invokedMethodProxyCopyright © 2018. All rights reserved.