Class SpringObjectFactoryProxy
- java.lang.Object
-
- com.opensymphony.xwork2.ObjectFactory
-
- com.opensymphony.xwork2.spring.SpringObjectFactory
-
- 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.SpringObjectFactoryThis 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
-
-
Constructor Summary
Constructors Constructor Description SpringObjectFactoryProxy(String autoWire, String alwaysAutoWire, String useClassCacheStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectbuildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map<String,Object> extraContext)ObjectbuildBean(Class clazz, Map<String,Object> extraContext)ObjectbuildBean(String className, Map<String,Object> extraContext)ObjectbuildBean(String beanName, Map<String,Object> extraContext, boolean injectInternal)com.opensymphony.xwork2.conversion.TypeConverterbuildConverter(Class<? extends com.opensymphony.xwork2.conversion.TypeConverter> converterClass, Map<String,Object> extraContext)com.opensymphony.xwork2.interceptor.InterceptorbuildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map<String,String> interceptorRefParams)com.opensymphony.xwork2.ResultbuildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig, Map<String,Object> extraContext)com.opensymphony.xwork2.UnknownHandlerbuildUnknownHandler(String unknownHandlerName, Map<String,Object> extraContext)com.opensymphony.xwork2.validator.ValidatorbuildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext)Class<?>getClassInstance(String className)booleanisNoArgConstructorRequired()voidsetActionFactory(com.opensymphony.xwork2.factory.ActionFactory actionFactory)voidsetClassLoader(ClassLoader cl)voidsetContainer(com.opensymphony.xwork2.inject.Container container)voidsetConverterFactory(com.opensymphony.xwork2.factory.ConverterFactory converterFactory)voidsetInterceptorFactory(com.opensymphony.xwork2.factory.InterceptorFactory interceptorFactory)voidsetResultFactory(com.opensymphony.xwork2.factory.ResultFactory resultFactory)voidsetUnknownHandlerFactory(com.opensymphony.xwork2.factory.UnknownHandlerFactory unknownHandlerFactory)voidsetValidatorFactory(com.opensymphony.xwork2.factory.ValidatorFactory validatorFactory)
-
-
-
Method Detail
-
getClassInstance
public Class<?> getClassInstance(String className) throws ClassNotFoundException
- Overrides:
getClassInstancein classcom.opensymphony.xwork2.spring.SpringObjectFactory- Throws:
ClassNotFoundException
-
setClassLoader
public void setClassLoader(ClassLoader cl)
- Overrides:
setClassLoaderin classcom.opensymphony.xwork2.ObjectFactory
-
setConverterFactory
public void setConverterFactory(com.opensymphony.xwork2.factory.ConverterFactory converterFactory)
- Overrides:
setConverterFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setValidatorFactory
public void setValidatorFactory(com.opensymphony.xwork2.factory.ValidatorFactory validatorFactory)
- Overrides:
setValidatorFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setInterceptorFactory
public void setInterceptorFactory(com.opensymphony.xwork2.factory.InterceptorFactory interceptorFactory)
- Overrides:
setInterceptorFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setResultFactory
public void setResultFactory(com.opensymphony.xwork2.factory.ResultFactory resultFactory)
- Overrides:
setResultFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setActionFactory
public void setActionFactory(com.opensymphony.xwork2.factory.ActionFactory actionFactory)
- Overrides:
setActionFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setUnknownHandlerFactory
public void setUnknownHandlerFactory(com.opensymphony.xwork2.factory.UnknownHandlerFactory unknownHandlerFactory)
- Overrides:
setUnknownHandlerFactoryin classcom.opensymphony.xwork2.ObjectFactory
-
setContainer
public void setContainer(com.opensymphony.xwork2.inject.Container container)
- Overrides:
setContainerin classcom.opensymphony.xwork2.ObjectFactory
-
buildInterceptor
public com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map<String,String> interceptorRefParams) throws com.opensymphony.xwork2.config.ConfigurationException- Overrides:
buildInterceptorin classcom.opensymphony.xwork2.ObjectFactory- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
buildResult
public com.opensymphony.xwork2.Result buildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig, Map<String,Object> extraContext) throws Exception- Overrides:
buildResultin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
buildValidator
public com.opensymphony.xwork2.validator.Validator buildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext) throws Exception
- Overrides:
buildValidatorin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
buildAction
public Object buildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map<String,Object> extraContext) throws Exception
- Overrides:
buildActionin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
buildBean
public Object buildBean(String className, Map<String,Object> extraContext) throws Exception
- Overrides:
buildBeanin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
buildBean
public Object buildBean(Class clazz, Map<String,Object> extraContext) throws Exception
- Overrides:
buildBeanin classcom.opensymphony.xwork2.spring.SpringObjectFactory- Throws:
Exception
-
buildBean
public Object buildBean(String beanName, Map<String,Object> extraContext, boolean injectInternal) throws Exception
- Overrides:
buildBeanin classcom.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:
buildConverterin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
buildUnknownHandler
public com.opensymphony.xwork2.UnknownHandler buildUnknownHandler(String unknownHandlerName, Map<String,Object> extraContext) throws Exception
- Overrides:
buildUnknownHandlerin classcom.opensymphony.xwork2.ObjectFactory- Throws:
Exception
-
isNoArgConstructorRequired
public boolean isNoArgConstructorRequired()
- Overrides:
isNoArgConstructorRequiredin classcom.opensymphony.xwork2.spring.SpringObjectFactory
-
-