com.opensymphony.webwork.spring
Class SessionContextSpringProxyableObjectFactory

java.lang.Object
  extended by com.opensymphony.xwork.ObjectFactory
      extended by com.opensymphony.xwork.spring.SpringObjectFactory
          extended by com.opensymphony.xwork.spring.SpringProxyableObjectFactory
              extended by com.opensymphony.webwork.spring.SessionContextSpringProxyableObjectFactory
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class SessionContextSpringProxyableObjectFactory
extends SpringProxyableObjectFactory

SessionContextSpringProxyableObjectFactory

Author:
Jason Carreira

Field Summary
 
Fields inherited from class com.opensymphony.xwork.spring.SpringObjectFactory
appContext, autowireStrategy, autoWiringFactory
 
Constructor Summary
SessionContextSpringProxyableObjectFactory()
           
 
Method Summary
 Object buildBean(String beanName, Map extraContext)
          Looks up beans using Spring's application context before falling back to the method defined in the ObjectFactory.
protected  org.springframework.context.ApplicationContext getApplicationContext(Map context)
          Subclasses may override this to return a different application context.
 
Methods inherited from class com.opensymphony.xwork.spring.SpringObjectFactory
autoWireBean, autoWireBean, buildBean, findAutoWiringBeanFactory, getAutowireStrategy, getClassInstance, initObjectFactory, isNoArgConstructorRequired, setApplicationContext, setAutowireStrategy, setUseClassCache
 
Methods inherited from class com.opensymphony.xwork.ObjectFactory
buildAction, buildInterceptor, buildResult, buildValidator, getContinuationPackage, getObjectFactory, setContinuationPackage, setObjectFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionContextSpringProxyableObjectFactory

public SessionContextSpringProxyableObjectFactory()
Method Detail

getApplicationContext

protected org.springframework.context.ApplicationContext getApplicationContext(Map context)
Description copied from class: SpringProxyableObjectFactory
Subclasses may override this to return a different application context. Note that this application context should see any changes made to the autoWiringFactory, so the application context should be either the original or a child context of the original.

Overrides:
getApplicationContext in class SpringProxyableObjectFactory
Parameters:
context - provided context.

buildBean

public Object buildBean(String beanName,
                        Map extraContext)
                 throws Exception
Description copied from class: SpringObjectFactory
Looks up beans using Spring's application context before falling back to the method defined in the ObjectFactory.

Overrides:
buildBean in class SpringProxyableObjectFactory
Parameters:
beanName - The name of the bean to look up in the application context
extraContext - a Map of extra context which uses the same keys as the ActionContext
Returns:
A bean from Spring or the result of calling the overridden method.
Throws:
Exception

WebWork Project Page