Top Description Methods
org.springframework.cglib.proxy

public Interface MethodInterceptor

extends Callback

General-purpose Enhancer callback which provides for "around advice".
Author
Juozas Baliuka [email protected]
Version
$Id: MethodInterceptor.java,v 1.8 2004/06/24 21:15:20 herbyderby Exp $

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

any value compatible with the signature of the proxied method. Method returning void will ignore this value.
intercept
(Object
"this", the enhanced object
obj
,
Method
intercepted Method
method
,
Object[]
argument array; primitive types are wrapped
args
,
MethodProxy
used to invoke super (non-intercepted method); may be called as many times as needed
proxy
)

All generated proxied methods call this method instead of the original method.

Method Detail

interceptback to summary
public Object intercept(Object obj, 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).

Parameters
obj:Object

"this", the enhanced object

method:Method

intercepted Method

args:Object[]

argument array; primitive types are wrapped

proxy:MethodProxy

used to invoke super (non-intercepted method); may be called as many times as needed

Returns:Object

any value compatible with the signature of the proxied method. Method returning void will ignore this value.

Exceptions
Throwable:
any exception may be thrown; if so, super method will not be invoked
See Also
MethodProxy