org.apache.struts2.osgi
Class SpringOsgiObjectFactory
java.lang.Object
com.opensymphony.xwork2.ObjectFactory
org.apache.struts2.osgi.SpringOsgiObjectFactory
- All Implemented Interfaces:
- Serializable
public class SpringOsgiObjectFactory
- extends com.opensymphony.xwork2.ObjectFactory
This Object factory uses the ActionContext(s) published by Spring OSGi
to lookup beans
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.xwork2.ObjectFactory |
reflectionProvider |
Methods inherited from class com.opensymphony.xwork2.ObjectFactory |
buildAction, buildBean, buildConverter, buildConverter, buildConverter, buildInterceptor, buildResult, buildValidator, getObjectFactory, injectInternalBeans, isNoArgConstructorRequired, setClassLoader, setContainer, setReflectionProvider |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringOsgiObjectFactory
public SpringOsgiObjectFactory()
buildBean
public Object buildBean(String className,
Map<String,Object> extraContext,
boolean injectInternal)
throws Exception
- Overrides:
buildBean
in class com.opensymphony.xwork2.ObjectFactory
- Throws:
Exception
buildBean
public Object buildBean(Class clazz,
Map<String,Object> extraContext)
throws Exception
- Overrides:
buildBean
in class com.opensymphony.xwork2.ObjectFactory
- Throws:
Exception
getClassInstance
public Class getClassInstance(String className)
throws ClassNotFoundException
- Overrides:
getClassInstance
in class com.opensymphony.xwork2.ObjectFactory
- Throws:
ClassNotFoundException
getBean
protected Object getBean(String beanName)
containsBean
protected boolean containsBean(String beanName)
setBundleAccessor
public void setBundleAccessor(BundleAccessor bundleAccessor)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.