net.sf.cglib.proxy
Interface MethodInterceptor
- Callback
public interface MethodInterceptor
General-purpose
Enhancer
callback which provides for "around advice".
$Id: MethodInterceptor.java,v 1.8 2004/06/24 21:15:20 herbyderby Exp $ 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.
|
intercept
public Object intercept(Object obj,
java.lang.reflect.Method method,
Object[] args,
MethodProxy proxy)
throws Throwable
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).
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 needed
- any value compatible with the signature of the proxied method. Method returning void will ignore this value.
Copyright (c) 2001 - Apache Software Foundation