static
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_AUTOWIRE
public static final java.lang.String PARAM_AUTOWIRE
- Deprecated.
- The name of the autowire init-param specified on the Struts ActionServlet:
"spring.autowire"
- See Also:
- Constant Field Values
PARAM_DEPENDENCY_CHECK
public static final java.lang.String PARAM_DEPENDENCY_CHECK
- Deprecated.
- The name of the dependency check init-param specified on the Struts ActionServlet:
"spring.dependencyCheck"
- See Also:
- Constant Field Values
AUTOWIRE_BY_NAME
public static final java.lang.String AUTOWIRE_BY_NAME
- Deprecated.
- Value of the autowire init-param that indicates autowiring by name:
"byName"
- See Also:
- Constant Field Values
AUTOWIRE_BY_TYPE
public static final java.lang.String AUTOWIRE_BY_TYPE
- Deprecated.
- Value of the autowire init-param that indicates autowiring by type:
"byType"
- See Also:
- Constant Field Values
logger
private static final Log logger
- Deprecated.
DelegatingActionUtils
public DelegatingActionUtils()
- Deprecated.
getWebApplicationContext
public static WebApplicationContext getWebApplicationContext(ActionServlet actionServlet,
ModuleConfig moduleConfig)
- Deprecated.
- Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
Checks for a module-specific context first, falling back to the
context for the default module else.
- Parameters:
actionServlet - the associated ActionServletmoduleConfig - the associated ModuleConfig (can be null )
- Returns:
- the WebApplicationContext, or
null if none - See Also:
ContextLoaderPlugIn.SERVLET_CONTEXT_PREFIX
getRequiredWebApplicationContext
public static WebApplicationContext getRequiredWebApplicationContext(ActionServlet actionServlet,
ModuleConfig moduleConfig)
throws java.lang.IllegalStateException
- Deprecated.
- Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
Checks for a module-specific context first, falling back to the
context for the default module else.
- Parameters:
actionServlet - the associated ActionServletmoduleConfig - the associated ModuleConfig (can be null )
- Returns:
- the WebApplicationContext
- Throws:
java.lang.IllegalStateException - if no WebApplicationContext could be found- See Also:
ContextLoaderPlugIn.SERVLET_CONTEXT_PREFIX
findRequiredWebApplicationContext
public static WebApplicationContext findRequiredWebApplicationContext(ActionServlet actionServlet,
ModuleConfig moduleConfig)
throws java.lang.IllegalStateException
- Deprecated.
- 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.
- Parameters:
actionServlet - the associated ActionServletmoduleConfig - the associated ModuleConfig (can be null )
- Returns:
- the WebApplicationContext
- Throws:
java.lang.IllegalStateException - if no WebApplicationContext could be found- See Also:
getWebApplicationContext(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig) ,
WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext)
determineActionBeanName
public static java.lang.String determineActionBeanName(ActionMapping mapping)
- Deprecated.
- Default implementation of Action bean determination, taking
the mapping path and prepending the module prefix, if any.
- Parameters:
mapping - the Struts ActionMapping
- Returns:
- the name of the Action bean
- See Also:
ActionConfig.getPath() ,
ModuleConfig.getPrefix()
getAutowireMode
public static int getAutowireMode(ActionServlet actionServlet)
- Deprecated.
- Determine the autowire mode from the "autowire" init-param of the
Struts ActionServlet, falling back to "AUTOWIRE_BY_TYPE" as default.
- Parameters:
actionServlet - the Struts ActionServlet
- Returns:
- the autowire mode to use
- See Also:
PARAM_AUTOWIRE ,
AUTOWIRE_BY_NAME ,
AUTOWIRE_BY_TYPE ,
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object, int, boolean) ,
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE ,
AutowireCapableBeanFactory.AUTOWIRE_BY_NAME
getDependencyCheck
public static boolean getDependencyCheck(ActionServlet actionServlet)
- Deprecated.
- Determine the dependency check to use from the "dependencyCheck" init-param
of the Struts ActionServlet, falling back to no dependency check as default.
- Parameters:
actionServlet - the Struts ActionServlet
- Returns:
- whether to enforce a dependency check or not
- See Also:
PARAM_DEPENDENCY_CHECK ,
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object, int, boolean)
|