Package org.apache.struts2.spring
Class StrutsSpringObjectFactory
java.lang.Object
com.opensymphony.xwork2.ObjectFactory
com.opensymphony.xwork2.spring.SpringObjectFactory
org.apache.struts2.spring.StrutsSpringObjectFactory
- All Implemented Interfaces:
Serializable
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Struts object factory that integrates with Spring.
Spring should be loaded using a web context listener
org.springframework.web.context.ContextLoaderListener
defined in web.xml
.
- See Also:
-
Field Summary
Fields inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
appContext, autowireStrategy, autoWiringFactory
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
autoWireBean, autoWireBean, buildBean, buildBean, findAutoWiringBeanFactory, getAutowireStrategy, getClassInstance, isNoArgConstructorRequired, setAlwaysRespectAutowireStrategy, setApplicationContext, setApplicationContextPath, setAutowireStrategy, setEnableAopSupport, setUseClassCache
Methods inherited from class com.opensymphony.xwork2.ObjectFactory
buildAction, buildBean, buildConverter, buildInterceptor, buildResult, buildUnknownHandler, buildValidator, injectInternalBeans, setActionFactory, setClassLoader, setContainer, setConverterFactory, setInterceptorFactory, setResultFactory, setUnknownHandlerFactory, setValidatorFactory
-
Constructor Details
-
StrutsSpringObjectFactory
public StrutsSpringObjectFactory() -
StrutsSpringObjectFactory
public StrutsSpringObjectFactory(String autoWire, String alwaysAutoWire, String useClassCacheStr, String enableAopSupport, jakarta.servlet.ServletContext servletContext, String devMode, Container container) Constructs the spring object factory- Parameters:
autoWire
- The type of autowiring to usealwaysAutoWire
- Whether to always respect the autowiring or notuseClassCacheStr
- Whether to use the class cache or notenableAopSupport
- enable AOP supportservletContext
- The servlet contextdevMode
- development mode- Since:
- 2.1.3
-