Interceptor that inspects ActionBeans for {@link Before} and {@link After} annotations andruns the annotated methods at the requested point in the request lifecycle. There is no limit on the number of methods within an ActionBean that can be marked with {@code @Before} and{@code @After} annotations, and individual methods may be marked with one or both annotations.
To configure the BeforeAfterMethodInterceptor for use you will need to add the following to your {@code web.xml} (assuming no other interceptors are yet configured):
<init-param> <param-name>Interceptor.Classes</param-name> <param-value>net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor</param-value> </init-param>
If one or more interceptors are already configured in your {@code web.xml} simply separatethe fully qualified names of the interceptors with commas (additional whitespace is ok).
@see net.sourceforge.stripes.action.Before @see net.sourceforge.stripes.action.After @author Jeppe Cramon @since Stripes 1.3
|
|
|
|