org.qi4j.library.struts2
Class Qi4jObjectFactory

java.lang.Object
  extended by com.opensymphony.xwork2.ObjectFactory
      extended by 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

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ObjectFactory
reflectionProvider
 
Constructor Summary
Qi4jObjectFactory()
           
 
Method Summary
 Object buildBean(Class classType, Map extraContext)
          Build a generic Java object of the given type.
 void destroy()
           
 boolean isNoArgConstructorRequired()
          Allows for ObjectFactory implementations that support Actions without no-arg constructors.
 void setCompositeBuilderFactory(TransientBuilderFactory compositeBuilderFactory)
           
 void setObjectBuilderFactory(ObjectBuilderFactory objectBuilderFactory)
           
 
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
 

Constructor Detail

Qi4jObjectFactory

public Qi4jObjectFactory()
Method Detail

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 build
extraContext - 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