| net.sf.cglib.proxy.MethodInterceptor
All known Subclasses: samples.Trace, samples.Beans, net.sf.cglib.proxy.TestInterceptor,
MethodInterceptor | public interface MethodInterceptor extends Callback(Code) | | General-purpose
Enhancer callback which provides for "around advice".
author: Juozas Baliuka baliuka@mwm.lt version: $Id: MethodInterceptor.java,v 1.8 2004/06/24 21:15:20 herbyderby Exp $ |
Method Summary | |
public Object | intercept(Object obj, java.lang.reflect.Method method, Object[] args, MethodProxy proxy) All generated proxied methods call this method instead of the original method.
The original method may either be invoked by normal reflection using the Method object,
or by using the MethodProxy (faster).
Parameters: obj - "this", the enhanced object Parameters: method - intercepted Method Parameters: args - argument array; primitive types are wrapped Parameters: proxy - used to invoke super (non-intercepted method); may be calledas many times as needed throws: Throwable - any exception may be thrown; if so, super method will not be invoked any value compatible with the signature of the proxied method. |
intercept | public Object intercept(Object obj, java.lang.reflect.Method method, Object[] args, MethodProxy proxy) throws Throwable(Code) | | All generated proxied methods call this method instead of the original method.
The original method may either be invoked by normal reflection using the Method object,
or by using the MethodProxy (faster).
Parameters: obj - "this", the enhanced object Parameters: method - intercepted Method Parameters: args - argument array; primitive types are wrapped Parameters: proxy - used to invoke super (non-intercepted method); may be calledas many times as needed throws: Throwable - any exception may be thrown; if so, super method will not be invoked any value compatible with the signature of the proxied method. Method returning void will ignore this value. See Also: MethodProxy |
|
|