org.qi4j.library.struts2
Class Qi4jObjectFactory
java.lang.Object
com.opensymphony.xwork2.ObjectFactory
org.qi4j.library.struts2.Qi4jObjectFactory
- All Implemented Interfaces:
- Serializable, org.apache.struts2.util.ObjectFactoryDestroyable
public class Qi4jObjectFactory
- extends com.opensymphony.xwork2.ObjectFactory
- implements org.apache.struts2.util.ObjectFactoryDestroyable
Qi4j implementation of struts object factory.
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.xwork2.ObjectFactory |
reflectionProvider |
Methods inherited from class com.opensymphony.xwork2.ObjectFactory |
buildAction, buildBean, buildBean, buildInterceptor, buildResult, buildValidator, getClassInstance, getObjectFactory, injectInternalBeans, setClassLoader, setContainer, setReflectionProvider |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Qi4jObjectFactory
public Qi4jObjectFactory()
setObjectBuilderFactory
public void setObjectBuilderFactory(ObjectBuilderFactory objectBuilderFactory)
setCompositeBuilderFactory
public void setCompositeBuilderFactory(TransientBuilderFactory compositeBuilderFactory)
buildBean
public Object buildBean(Class classType,
Map extraContext)
throws Exception
- Build a generic Java object of the given type.
- Overrides:
buildBean
in class com.opensymphony.xwork2.ObjectFactory
- Parameters:
classType
- Type of Object to buildextraContext
- A map of extra context which uses the same keys as the ActionContext
- Throws:
Exception
isNoArgConstructorRequired
public boolean isNoArgConstructorRequired()
- Allows for ObjectFactory implementations that support Actions without no-arg constructors.
- Overrides:
isNoArgConstructorRequired
in class com.opensymphony.xwork2.ObjectFactory
- Returns:
false
.
destroy
public final void destroy()
- Specified by:
destroy
in interface org.apache.struts2.util.ObjectFactoryDestroyable