java.lang.Object | |
↳ | org.springframework.web.struts.DelegatingActionUtils |
This class is deprecated.
as of Spring 3.0
Common methods for letting Struts Actions work with a Spring WebApplicationContext.
As everything in Struts is based on concrete inheritance, we have to provide an Action subclass (DelegatingActionProxy) and two RequestProcessor subclasses (DelegatingRequestProcessor and DelegatingTilesRequestProcessor). The only way to share common functionality is a utility class like this one.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AUTOWIRE_BY_NAME | Value of the autowire init-param that indicates autowiring by name: "byName" | |||||||||
String | AUTOWIRE_BY_TYPE | Value of the autowire init-param that indicates autowiring by type: "byType" | |||||||||
String | PARAM_AUTOWIRE | The name of the autowire init-param specified on the Struts ActionServlet: "spring.autowire" | |||||||||
String | PARAM_DEPENDENCY_CHECK | The name of the dependency check init-param specified on the Struts ActionServlet: "spring.dependencyCheck" |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default implementation of Action bean determination, taking
the mapping path and prepending the module prefix, if any.
| |||||||||||
Find most specific context available: check ContextLoaderPlugIn's
WebApplicationContext first, fall back to root WebApplicationContext else.
| |||||||||||
Determine the autowire mode from the "autowire" init-param of the
Struts ActionServlet, falling back to "AUTOWIRE_BY_TYPE" as default.
| |||||||||||
Determine the dependency check to use from the "dependencyCheck" init-param
of the Struts ActionServlet, falling back to no dependency check as default.
| |||||||||||
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
| |||||||||||
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Value of the autowire init-param that indicates autowiring by name: "byName"
Value of the autowire init-param that indicates autowiring by type: "byType"
The name of the autowire init-param specified on the Struts ActionServlet: "spring.autowire"
The name of the dependency check init-param specified on the Struts ActionServlet: "spring.dependencyCheck"
Default implementation of Action bean determination, taking the mapping path and prepending the module prefix, if any.
mapping | the Struts ActionMapping |
---|
Find most specific context available: check ContextLoaderPlugIn's WebApplicationContext first, fall back to root WebApplicationContext else.
When checking the ContextLoaderPlugIn context: checks for a module-specific context first, falling back to the context for the default module else.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig (can be null ) |
IllegalStateException | if no WebApplicationContext could be found |
---|
Determine the autowire mode from the "autowire" init-param of the Struts ActionServlet, falling back to "AUTOWIRE_BY_TYPE" as default.
actionServlet | the Struts ActionServlet |
---|
Determine the dependency check to use from the "dependencyCheck" init-param of the Struts ActionServlet, falling back to no dependency check as default.
actionServlet | the Struts ActionServlet |
---|
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
Checks for a module-specific context first, falling back to the context for the default module else.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig (can be null ) |
IllegalStateException | if no WebApplicationContext could be found |
---|
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
Checks for a module-specific context first, falling back to the context for the default module else.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig (can be null ) |
null
if none