com.opensymphony.xwork.spring
Class SpringProxyableObjectFactory
java.lang.Object
com.opensymphony.xwork.ObjectFactory
com.opensymphony.xwork.spring.SpringObjectFactory
com.opensymphony.xwork.spring.SpringProxyableObjectFactory
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
- public class SpringProxyableObjectFactory
- extends SpringObjectFactory
SpringProxyableObjectFactory.
- Author:
- Jason Carreira
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringProxyableObjectFactory
public SpringProxyableObjectFactory()
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 SpringObjectFactory
- Parameters:
beanName
- The name of the bean to look up in the application contextextraContext
-
- Returns:
- A bean from Spring or the result of calling the overridden
method.
- Throws:
Exception
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext(Map context)
- 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.
- Parameters:
context
- provided context.