public interface MethodInterceptor extends Callback
Enhancer callback which provides for "around advice".| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
All generated proxied methods call this method instead of the original method.
|
java.lang.Object intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
throws java.lang.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 neededjava.lang.Throwable - any exception may be thrown; if so, super method will not be invokedMethodProxyCopyright (c) 2001 - Apache Software Foundation