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.ObjectFactoryCleanup 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 ObjectbuildBean(Class clazz, Map<String,Object> extraContext)com.opensymphony.xwork2.interceptor.InterceptorbuildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map<String,String> interceptorRefParams)Class<?>getClassInstance(String name)booleanisNoArgConstructorRequired()
-
-
-
Method Detail
-
isNoArgConstructorRequired
public boolean isNoArgConstructorRequired()
- Overrides:
isNoArgConstructorRequiredin classcom.opensymphony.xwork2.ObjectFactory
-
getClassInstance
public Class<?> getClassInstance(String name) throws ClassNotFoundException
- Overrides:
getClassInstancein classcom.opensymphony.xwork2.ObjectFactory- Throws:
ClassNotFoundException
-
buildBean
public Object buildBean(Class clazz, Map<String,Object> extraContext)
- Overrides:
buildBeanin 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
-
-