Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » spring » [javadoc | source]
org.apache.struts2.spring
public class: StrutsSpringObjectFactory [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.spring.SpringObjectFactory
      org.apache.struts2.spring.StrutsSpringObjectFactory
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.
Constructor:
 public StrutsSpringObjectFactory(String autoWire,
    String alwaysAutoWire,
    String useClassCacheStr,
    ServletContext servletContext,
    String devMode,
    Container container) 
    Constructs the spring object factory
    Parameters:
    autoWire - The type of autowiring to use
    alwaysAutoWire - Whether to always respect the autowiring or not
    useClassCacheStr - Whether to use the class cache or not
    servletContext - The servlet context
    since: 2.1.3 -
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait