net.sf.cglib.proxy
public interface MethodInterceptor extends Callback
Version: $Id: MethodInterceptor.java,v 1.8 2004/06/24 21:15:20 herbyderby Exp $
Method Summary | |
---|---|
Object | intercept(Object obj, Method method, Object[] args, MethodProxy proxy)
All generated proxied methods call this method instead of the original method.
|
Parameters: obj "this", the enhanced object method intercepted Method args argument array; primitive types are wrapped proxy used to invoke super (non-intercepted method); may be called as many times as needed
Returns: any value compatible with the signature of the proxied method. Method returning void will ignore this value.
Throws: Throwable any exception may be thrown; if so, super method will not be invoked
See Also: MethodProxy