Class PluginAwareObjectFactory

java.lang.Object
com.opensymphony.xwork2.ObjectFactory
com.opensymphony.xwork2.spring.SpringObjectFactory
com.atlassian.bamboo.plugin.xwork.StrutsSpringObjectFactory
com.atlassian.bamboo.plugin.xwork.PluginAwareObjectFactory
All Implemented Interfaces:
Serializable, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class PluginAwareObjectFactory extends StrutsSpringObjectFactory
An Spring autowiring object factory that uses the classloader of the of PluginAware action configs to load and wire up the action class.

Non-plugin actions are wired up using the standard WebWorkSpringObjectFactory mechanism.

See Also:
  • Field Summary

    Fields inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory

    appContext, autowireStrategy, autoWiringFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    PluginAwareObjectFactory(String autoWire, String alwaysAutoWire, String useClassCacheStr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map extraContext)
     

    Methods inherited from class com.atlassian.bamboo.plugin.xwork.StrutsSpringObjectFactory

    init

    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

    buildBean, buildConverter, buildInterceptor, buildResult, buildUnknownHandler, buildValidator, 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 Details

    • PluginAwareObjectFactory

      public PluginAwareObjectFactory(String autoWire, String alwaysAutoWire, String useClassCacheStr)
  • Method Details

    • buildAction

      public Object buildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map extraContext) throws Exception
      Overrides:
      buildAction in class com.opensymphony.xwork2.ObjectFactory
      Throws:
      Exception