| org.springframework.web.struts.AutowiringTilesRequestProcessor
AutowiringTilesRequestProcessor | public class AutowiringTilesRequestProcessor extends TilesRequestProcessor (Code) | | 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 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.
author: Juergen Hoeller since: 2.0 See Also: AutowiringRequestProcessor See Also: ContextLoaderPlugIn See Also: DelegatingActionUtils |
Method Summary | |
final protected int | getAutowireMode() Return the autowire mode to use for wiring Struts Actions. | final protected boolean | getDependencyCheck() Return whether to apply a dependency check after wiring Struts Actions. | final protected WebApplicationContext | getWebApplicationContext() Return the current Spring WebApplicationContext. | public void | init(ActionServlet actionServlet, ModuleConfig moduleConfig) | protected int | initAutowireMode(ActionServlet actionServlet, ModuleConfig moduleConfig) Determine the autowire mode to use for wiring Struts Actions. | protected boolean | initDependencyCheck(ActionServlet actionServlet, ModuleConfig moduleConfig) Determine whether to apply a dependency check after wiring Struts Actions. | protected WebApplicationContext | initWebApplicationContext(ActionServlet actionServlet, ModuleConfig moduleConfig) Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext. | protected Action | processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Extend the base class method to autowire each created Action instance. |
getAutowireMode | final protected int getAutowireMode()(Code) | | Return the autowire mode to use for wiring Struts Actions.
|
getDependencyCheck | final protected boolean getDependencyCheck()(Code) | | Return whether to apply a dependency check after wiring Struts Actions.
|
getWebApplicationContext | final protected WebApplicationContext getWebApplicationContext()(Code) | | Return the current Spring WebApplicationContext.
|
|
|