|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvocationInterceptor
Interceptor around InvocationHandler.
| Method Summary | |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args,
InvocationHandler delegate)
This method can intercept the invocation of InvocationHandler either before or after
the invocation happens. |
| Method Detail |
|---|
Object invoke(Object proxy,
Method method,
Object[] args,
InvocationHandler delegate)
throws Throwable
InvocationHandler either before or after
the invocation happens.
The general coding pattern is:
Object invoke(Object proxy, Method method, Object[] args, InvocationHandler delegate) {
... do pre-invocation work ...
ret = delegate.invoke(proxy,method,args);
... do post-invocation work ...
return ret;
}
But the implementation may choose to skip calling the 'delegate' object, alter arguments, and alter the return value.
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||