Package com.google.inject.struts2
Class Struts2Factory
- java.lang.Object
-
- com.opensymphony.xwork2.ObjectFactory
-
- com.google.inject.struts2.Struts2Factory
-
- All Implemented Interfaces:
Serializable
public class Struts2Factory extends com.opensymphony.xwork2.ObjectFactory
Cleanup up version from Bob's GuiceObjectFactory. Now works properly with GS2 and fixes several bugs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Struts2Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
buildBean(Class clazz, Map<String,Object> extraContext)
com.opensymphony.xwork2.interceptor.Interceptor
buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map<String,String> interceptorRefParams)
Class<?>
getClassInstance(String name)
boolean
isNoArgConstructorRequired()
-
Methods inherited from class com.opensymphony.xwork2.ObjectFactory
buildAction, buildBean, buildBean, buildConverter, buildResult, buildUnknownHandler, buildValidator, injectInternalBeans, setActionFactory, setClassLoader, setContainer, setConverterFactory, setInterceptorFactory, setResultFactory, setUnknownHandlerFactory, setValidatorFactory
-
-
-
-
Method Detail
-
isNoArgConstructorRequired
public boolean isNoArgConstructorRequired()
- Overrides:
isNoArgConstructorRequired
in classcom.opensymphony.xwork2.ObjectFactory
-
getClassInstance
public Class<?> getClassInstance(String name) throws ClassNotFoundException
- Overrides:
getClassInstance
in classcom.opensymphony.xwork2.ObjectFactory
- Throws:
ClassNotFoundException
-
buildBean
public Object buildBean(Class clazz, Map<String,Object> extraContext)
- Overrides:
buildBean
in 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:
buildInterceptor
in classcom.opensymphony.xwork2.ObjectFactory
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
-