com.atlassian.bamboo.plugin.xwork
Class SpringObjectFactoryProxy

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

public class SpringObjectFactoryProxy
extends com.opensymphony.xwork2.spring.SpringObjectFactory

This class is meant to be injected using Struts DI. It will delegate to a default ObjectFactory before webapp context is ready (Bamboo setup) and switch to spring-struts object factory afterwards.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
appContext, autowireStrategy, autoWiringFactory
 
Constructor Summary
SpringObjectFactoryProxy(String autoWire, String alwaysAutoWire, String useClassCacheStr, String devMode, com.opensymphony.xwork2.inject.Container container)
           
 
Method Summary
 Object buildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map extraContext)
           
 Object buildBean(Class clazz, Map extraContext)
           
 Object buildBean(String className, Map extraContext)
           
 Object buildBean(String beanName, Map<String,Object> extraContext, boolean injectInternal)
           
 com.opensymphony.xwork2.conversion.TypeConverter buildConverter(Class<? extends com.opensymphony.xwork2.conversion.TypeConverter> converterClass, Map<String,Object> extraContext)
           
 com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map interceptorRefParams)
           
 com.opensymphony.xwork2.Result buildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig, Map extraContext)
           
 com.opensymphony.xwork2.validator.Validator buildValidator(String className, Map params, Map extraContext)
           
 Class<?> getClassInstance(String className)
           
 boolean isNoArgConstructorRequired()
           
 void setActionFactory(com.opensymphony.xwork2.factory.ActionFactory actionFactory)
           
 void setClassLoader(ClassLoader cl)
           
 void setContainer(com.opensymphony.xwork2.inject.Container container)
           
 void setConverterFactory(com.opensymphony.xwork2.factory.ConverterFactory converterFactory)
           
 void setInterceptorFactory(com.opensymphony.xwork2.factory.InterceptorFactory interceptorFactory)
           
 void setResultFactory(com.opensymphony.xwork2.factory.ResultFactory resultFactory)
           
 void setValidatorFactory(com.opensymphony.xwork2.factory.ValidatorFactory validatorFactory)
           
 
Methods inherited from class com.opensymphony.xwork2.spring.SpringObjectFactory
autoWireBean, autoWireBean, findAutoWiringBeanFactory, getAutowireStrategy, initObjectFactory, setAlwaysRespectAutowireStrategy, setApplicationContext, setApplicationContextPath, setAutowireStrategy, setUseClassCache
 
Methods inherited from class com.opensymphony.xwork2.ObjectFactory
getObjectFactory, injectInternalBeans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringObjectFactoryProxy

public SpringObjectFactoryProxy(String autoWire,
                                String alwaysAutoWire,
                                String useClassCacheStr,
                                String devMode,
                                com.opensymphony.xwork2.inject.Container container)
Method Detail

getClassInstance

public Class<?> getClassInstance(String className)
                          throws ClassNotFoundException
Overrides:
getClassInstance in class com.opensymphony.xwork2.spring.SpringObjectFactory
Throws:
ClassNotFoundException

setClassLoader

public void setClassLoader(ClassLoader cl)
Overrides:
setClassLoader in class com.opensymphony.xwork2.ObjectFactory

setContainer

public void setContainer(com.opensymphony.xwork2.inject.Container container)
Overrides:
setContainer in class com.opensymphony.xwork2.ObjectFactory

setConverterFactory

public void setConverterFactory(com.opensymphony.xwork2.factory.ConverterFactory converterFactory)
Overrides:
setConverterFactory in class com.opensymphony.xwork2.ObjectFactory

setValidatorFactory

public void setValidatorFactory(com.opensymphony.xwork2.factory.ValidatorFactory validatorFactory)
Overrides:
setValidatorFactory in class com.opensymphony.xwork2.ObjectFactory

setInterceptorFactory

public void setInterceptorFactory(com.opensymphony.xwork2.factory.InterceptorFactory interceptorFactory)
Overrides:
setInterceptorFactory in class com.opensymphony.xwork2.ObjectFactory

setResultFactory

public void setResultFactory(com.opensymphony.xwork2.factory.ResultFactory resultFactory)
Overrides:
setResultFactory in class com.opensymphony.xwork2.ObjectFactory

setActionFactory

public void setActionFactory(com.opensymphony.xwork2.factory.ActionFactory actionFactory)
Overrides:
setActionFactory in class com.opensymphony.xwork2.ObjectFactory

buildInterceptor

public com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig,
                                                                        Map interceptorRefParams)
                                                                 throws com.opensymphony.xwork2.config.ConfigurationException
Overrides:
buildInterceptor in class com.opensymphony.xwork2.ObjectFactory
Throws:
com.opensymphony.xwork2.config.ConfigurationException

buildResult

public com.opensymphony.xwork2.Result buildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig,
                                                  Map extraContext)
                                           throws Exception
Overrides:
buildResult in class com.opensymphony.xwork2.ObjectFactory
Throws:
Exception

buildValidator

public com.opensymphony.xwork2.validator.Validator buildValidator(String className,
                                                                  Map params,
                                                                  Map extraContext)
                                                           throws Exception
Overrides:
buildValidator in class com.opensymphony.xwork2.ObjectFactory
Throws:
Exception

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

buildBean

public Object buildBean(String className,
                        Map extraContext)
                 throws Exception
Overrides:
buildBean in class com.opensymphony.xwork2.ObjectFactory
Throws:
Exception

buildBean

public Object buildBean(Class clazz,
                        Map extraContext)
                 throws Exception
Overrides:
buildBean in class com.opensymphony.xwork2.spring.SpringObjectFactory
Throws:
Exception

buildBean

public Object buildBean(String beanName,
                        Map<String,Object> extraContext,
                        boolean injectInternal)
                 throws Exception
Overrides:
buildBean in class com.opensymphony.xwork2.spring.SpringObjectFactory
Throws:
Exception

buildConverter

public com.opensymphony.xwork2.conversion.TypeConverter buildConverter(Class<? extends com.opensymphony.xwork2.conversion.TypeConverter> converterClass,
                                                                       Map<String,Object> extraContext)
                                                                throws Exception
Overrides:
buildConverter in class com.opensymphony.xwork2.ObjectFactory
Throws:
Exception

isNoArgConstructorRequired

public boolean isNoArgConstructorRequired()
Overrides:
isNoArgConstructorRequired in class com.opensymphony.xwork2.spring.SpringObjectFactory


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.