com.opensymphony.xwork2.spring.interceptor
public class: ActionAutowiringInterceptor [javadoc |
source]
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, Interceptor
TODO: Give a description of the Interceptor.
TODO: Describe the paramters for this Interceptor.
TODO: Discuss some possible extension of the Interceptor.
<!-- TODO: Describe how the Interceptor reference will effect execution -->
<action name="someAction" class="com.examples.SomeAction">
TODO: fill in the interceptor reference.
<interceptor-ref name=""/>
<result name="success">good_result.ftl</result>
</action>
Autowires action classes to Spring beans. The strategy for autowiring the beans can be configured
by setting the parameter on the interceptor. Actions that need access to the
ActionContext
can implements the
ApplicationContextAware
interface. The context will also be placed on
the action context under the APPLICATION_CONTEXT attribute.
- author:
Simon
- Stewart
- author:
Eric
- Hauser
Field Summary |
---|
public static final String | APPLICATION_CONTEXT | |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |