@Intercepts(value=ActionBeanResolution) public class SpringInterceptor extends Object implements Interceptor
An Interceptor that uses a Spring context to inject Spring beans into newly created
ActionBeans immediately following ActionBeanResolution. For more information on how the injection
is performed see SpringHelper.injectBeans(Object,
net.sourceforge.stripes.action.ActionBeanContext).
To configure the SpringInterceptor for use you will need to add the following to your web.xml (assuming no other interceptors are yet configured):
<init-param>
<param-name>Interceptor.Classes</param-name>
<param-value>
net.sourceforge.stripes.integration.spring.SpringInterceptor,
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor
</param-value>
</init-param>
If one or more interceptors are already configured in your web.xml simply separate the fully qualified names of the interceptors with commas (additional whitespace is ok).
SpringBean| Constructor and Description |
|---|
SpringInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Resolution |
intercept(ExecutionContext context)
Allows ActionBean resolution to proceed and then once the ActionBean has been
located invokes the
SpringHelper to perform Spring based dependency injection. |
public Resolution intercept(ExecutionContext context) throws Exception
SpringHelper to perform Spring based dependency injection.intercept in interface Interceptorcontext - the current execution contextException - if the Spring binding process produced unrecoverable errors© Copyright 2005-2006, Stripes Development Team.