|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Define an interceptor on method calls.
Method Summary | |
java.lang.Object |
intercept(java.lang.Object base,
java.lang.reflect.Method method,
java.lang.Object[] args,
org.skife.intercept.InterceptorStack stack)
To pass execution down the stack call one of the stack.yield() methods
The return value from this will be whatever the downstream return value was. |
Method Detail |
public java.lang.Object intercept(java.lang.Object base, java.lang.reflect.Method method, java.lang.Object[] args, org.skife.intercept.InterceptorStack stack) throws java.lang.Throwable
stack.yield()
methods
The return value from this will be whatever the downstream return value was. In most
cases it is appropriate to return this value.
All interceptors provide "around" style interception with logic before the
stack.yield(...)
being before downstream invocation, and logic
afterwards being after invocation.
base
- A reference to the base object being interceptedmethod
- A reference to the Method being interceptedargs
- The invocation argumentsstack
- The InterceptorStack
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |