org.picocontainer.web.struts2
Class PicoObjectFactory

java.lang.Object
  extended by com.opensymphony.xwork2.ObjectFactory
      extended by org.picocontainer.web.struts2.PicoObjectFactory
All Implemented Interfaces:
Serializable

public class PicoObjectFactory
extends com.opensymphony.xwork2.ObjectFactory

XWork2 ObjectFactory implementation to delegate action/component/bean lookups to PicoContainer.

Author:
Paul Hammant, Mauro Talevi
See Also:
Serialized Form

Nested Class Summary
static class PicoObjectFactory.ServletFilter
           
 
Constructor Summary
PicoObjectFactory()
           
 
Method Summary
 Object buildBean(Class clazz, Map extraContext)
           
 com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig config, Map params)
           
 Class getClassInstance(String name)
           
 boolean isNoArgConstructorRequired()
           
 
Methods inherited from class com.opensymphony.xwork2.ObjectFactory
buildAction, buildBean, buildBean, buildResult, buildValidator, getObjectFactory, injectInternalBeans, setClassLoader, setContainer, setObjectFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicoObjectFactory

public PicoObjectFactory()
Method Detail

getClassInstance

public Class getClassInstance(String name)
                       throws ClassNotFoundException
Overrides:
getClassInstance in class com.opensymphony.xwork2.ObjectFactory
Throws:
ClassNotFoundException

buildBean

public Object buildBean(Class clazz,
                        Map extraContext)
                 throws Exception
Overrides:
buildBean in class com.opensymphony.xwork2.ObjectFactory
Throws:
Exception

buildInterceptor

public com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig config,
                                                                        Map params)
                                                                 throws com.opensymphony.xwork2.config.ConfigurationException
Overrides:
buildInterceptor in class com.opensymphony.xwork2.ObjectFactory
Throws:
com.opensymphony.xwork2.config.ConfigurationException

isNoArgConstructorRequired

public boolean isNoArgConstructorRequired()
Overrides:
isNoArgConstructorRequired in class com.opensymphony.xwork2.ObjectFactory


Copyright © 2008. All Rights Reserved.