|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodInterceptor
A MethodInterceptor is a simple interface that allows you to intercept ActionMethods before and after they have been invoked. This before and after interception provides AOP type of functionality.
Method Summary | |
---|---|
boolean |
accept(java.lang.reflect.Method method)
Determines if the implementation should intercept the call to the Action Method. |
java.lang.Object |
intercept(ControllerDefinition controllerDefinition,
java.lang.reflect.Method method,
InterceptorChain chain,
java.lang.Object... arguments)
This method allows an ActionMethod call to be intercepted. |
Method Detail |
---|
boolean accept(java.lang.reflect.Method method)
method
- is the action method that is to be invoked (or intercepted)
java.lang.Object intercept(ControllerDefinition controllerDefinition, java.lang.reflect.Method method, InterceptorChain chain, java.lang.Object... arguments) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
InterceptorChain.proceed(ControllerDefinition, Method, Object[])
.
controllerDefinition
- the controller definition instance which owns the action method being invokedmethod
- the actual action method to be invokedchain
- is the InterceptorChain managing the method interceptorsarguments
- are the argument values to satisfy the action method invocation
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |