java.lang.Object | ||
↳ | TilesRequestProcessor | |
↳ | org.springframework.web.struts.AutowiringTilesRequestProcessor |
This class is deprecated.
as of Spring 3.0
Subclass of Struts's TilesRequestProcessor that autowires Struts Actions with Spring beans defined in ContextLoaderPlugIn's WebApplicationContext or - in case of general service layer beans - in the root WebApplicationContext.
Behaves like
AutowiringRequestProcessor
,
but also provides the Tiles functionality of the original TilesRequestProcessor.
As there's just a single central class to customize in Struts, we have to provide
another subclass here, covering both the Tiles and the Spring delegation aspect.
The default implementation delegates to the DelegatingActionUtils class as fas as possible, to reuse as much code as possible despite the need to provide two RequestProcessor subclasses. If you need to subclass yet another RequestProcessor, take this class as a template, delegating to DelegatingActionUtils just like it.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the autowire mode to use for wiring Struts Actions.
| |||||||||||
Return whether to apply a dependency check after wiring Struts Actions.
| |||||||||||
Return the current Spring WebApplicationContext.
| |||||||||||
Determine the autowire mode to use for wiring Struts Actions.
| |||||||||||
Determine whether to apply a dependency check after wiring Struts Actions.
| |||||||||||
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext.
| |||||||||||
Extend the base class method to autowire each created Action instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
ServletException |
---|
Return the autowire mode to use for wiring Struts Actions.
Return whether to apply a dependency check after wiring Struts Actions.
Return the current Spring WebApplicationContext.
Determine the autowire mode to use for wiring Struts Actions.
The default implementation checks the "autowire" init-param of the Struts ActionServlet, falling back to "AUTOWIRE_BY_TYPE" as default.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig |
Determine whether to apply a dependency check after wiring Struts Actions.
The default implementation checks the "dependencyCheck" init-param of the Struts ActionServlet, falling back to no dependency check as default.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig |
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext, falling back to the root WebApplicationContext. This context is supposed to contain the service layer beans to wire the Struts Actions with.
actionServlet | the associated ActionServlet |
---|---|
moduleConfig | the associated ModuleConfig |
IllegalStateException | if no WebApplicationContext could be found |
---|
Extend the base class method to autowire each created Action instance.
IOException |
---|