@Deprecated public class AutowiringTilesRequestProcessor extends org.apache.struts.tiles.TilesRequestProcessor
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.
AutowiringRequestProcessor
,
ContextLoaderPlugIn
,
DelegatingActionUtils
Constructor and Description |
---|
AutowiringTilesRequestProcessor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getAutowireMode()
Deprecated.
Return the autowire mode to use for wiring Struts Actions.
|
protected boolean |
getDependencyCheck()
Deprecated.
Return whether to apply a dependency check after wiring Struts Actions.
|
protected WebApplicationContext |
getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
void |
init(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
|
protected int |
initAutowireMode(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Determine the autowire mode to use for wiring Struts Actions.
|
protected boolean |
initDependencyCheck(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Determine whether to apply a dependency check after wiring Struts Actions.
|
protected WebApplicationContext |
initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext.
|
protected org.apache.struts.action.Action |
processActionCreate(HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Deprecated.
Extend the base class method to autowire each created Action instance.
|
doForward, getDefinitionsFactory, initDefinitionsMapping, internalModuleRelativeForward, internalModuleRelativeInclude, processForwardConfig, processTilesDefinition
destroy, doInclude, getInternal, getServletContext, log, log, process, processActionForm, processActionPerform, processCachedMessages, processContent, processException, processForward, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPopulate, processPreprocess, processRoles, processValidate
public AutowiringTilesRequestProcessor()
public void init(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig) throws ServletException
init
in class org.apache.struts.tiles.TilesRequestProcessor
ServletException
protected WebApplicationContext initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig) throws IllegalStateException
actionServlet
- the associated ActionServletmoduleConfig
- the associated ModuleConfigIllegalStateException
- if no WebApplicationContext could be foundDelegatingActionUtils.findRequiredWebApplicationContext(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig)
,
ContextLoaderPlugIn.SERVLET_CONTEXT_PREFIX
protected int initAutowireMode(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig)
The default implementation checks the "autowire" init-param of the Struts ActionServlet, falling back to "AUTOWIRE_BY_TYPE" as default.
actionServlet
- the associated ActionServletmoduleConfig
- the associated ModuleConfigDelegatingActionUtils.getAutowireMode(org.apache.struts.action.ActionServlet)
,
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object, int, boolean)
,
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE
,
AutowireCapableBeanFactory.AUTOWIRE_BY_NAME
protected boolean initDependencyCheck(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig)
The default implementation checks the "dependencyCheck" init-param of the Struts ActionServlet, falling back to no dependency check as default.
actionServlet
- the associated ActionServletmoduleConfig
- the associated ModuleConfigDelegatingActionUtils.getDependencyCheck(org.apache.struts.action.ActionServlet)
,
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object, int, boolean)
protected final WebApplicationContext getWebApplicationContext()
protected final int getAutowireMode()
protected final boolean getDependencyCheck()
protected org.apache.struts.action.Action processActionCreate(HttpServletRequest request, HttpServletResponse response, org.apache.struts.action.ActionMapping mapping) throws IOException
processActionCreate
in class org.apache.struts.action.RequestProcessor
IOException
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object, int, boolean)