T
- type of the proxy that will have its method calls interceptedpublic interface MethodInvocation<T>
Modifier and Type | Method and Description |
---|---|
Object |
intercept(T proxy,
Method method,
Object[] args,
SuperMethod superMethod)
Executes for all method invocations on proxies.
|
Object intercept(T proxy, Method method, Object[] args, SuperMethod superMethod)
proxy
- that received the method call.method
- called.args
- given to the method call.superMethod
- allowing calls to the overriden original method. A super method call only makes sense for
concrete class proxies.Copyright © 2014 Caelum. All rights reserved.