Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.context.ApplicationContextAware

    public class StrutsSpringObjectFactory

extends com.opensymphony.xwork2.spring.SpringObjectFactory

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:
  Serialized Form

Field Summary

Fields inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
`appContext, autowireStrategy, autoWiringFactory`

Constructor Summary
`StrutsSpringObjectFactory(String autoWire, String alwaysAutoWire, String useClassCacheStr, String enableAopSupport, javax.servlet.ServletContext servletContext, String devMode, com.opensymphony.xwork2.inject.Container container)` Constructs the spring object factory

Method Summary

Methods inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
`autoWireBean, autoWireBean, buildBean, buildBean, findAutoWiringBeanFactory, getAutowireStrategy, getClassInstance, initObjectFactory, isNoArgConstructorRequired, setAlwaysRespectAutowireStrategy, setApplicationContext, setApplicationContextPath, setAutowireStrategy, setEnableAopSupport, setUseClassCache`

Methods inherited from class com.opensymphony.xwork2.ObjectFactory
`buildAction, buildBean, buildConverter, buildInterceptor, buildResult, buildUnknownHandler, buildValidator, getObjectFactory, injectInternalBeans, setActionFactory, setClassLoader, setContainer, setConverterFactory, setInterceptorFactory, setResultFactory, setUnknownHandlerFactory, setValidatorFactory`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StrutsSpringObjectFactory

    public StrutsSpringObjectFactory(String autoWire,
                                     String alwaysAutoWire,
                                     String useClassCacheStr,
                                     String enableAopSupport,
                                     javax.servlet.ServletContext servletContext,
                                     String devMode,
                                     com.opensymphony.xwork2.inject.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

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.