org.apache.struts2.osgi
Class SpringOsgiObjectFactory

java.lang.Object
  extended by com.opensymphony.xwork2.ObjectFactory
      extended by org.apache.struts2.osgi.SpringOsgiObjectFactory
All Implemented Interfaces:
java.io.Serializable

public class SpringOsgiObjectFactory
extends ObjectFactory

This Object factory uses the ActionContext(s) published by Spring OSGi to lookup beans

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ObjectFactory
reflectionProvider
 
Constructor Summary
SpringOsgiObjectFactory()
           
 
Method Summary
 java.lang.Object buildBean(java.lang.Class clazz, java.util.Map<java.lang.String,java.lang.Object> extraContext)
           
 java.lang.Object buildBean(java.lang.String className, java.util.Map<java.lang.String,java.lang.Object> extraContext, boolean injectInternal)
           
protected  boolean containsBean(java.lang.String beanName)
           
protected  java.lang.Object getBean(java.lang.String beanName)
           
 java.lang.Class getClassInstance(java.lang.String className)
           
 void setBundleAccessor(BundleAccessor bundleAccessor)
           
 
Methods inherited from class com.opensymphony.xwork2.ObjectFactory
buildAction, buildBean, 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
 

Constructor Detail

SpringOsgiObjectFactory

public SpringOsgiObjectFactory()
Method Detail

buildBean

public java.lang.Object buildBean(java.lang.String className,
                                  java.util.Map<java.lang.String,java.lang.Object> extraContext,
                                  boolean injectInternal)
                           throws java.lang.Exception
Overrides:
buildBean in class ObjectFactory
Throws:
java.lang.Exception

buildBean

public java.lang.Object buildBean(java.lang.Class clazz,
                                  java.util.Map<java.lang.String,java.lang.Object> extraContext)
                           throws java.lang.Exception
Overrides:
buildBean in class ObjectFactory
Throws:
java.lang.Exception

getClassInstance

public java.lang.Class getClassInstance(java.lang.String className)
                                 throws java.lang.ClassNotFoundException
Overrides:
getClassInstance in class ObjectFactory
Throws:
java.lang.ClassNotFoundException

getBean

protected java.lang.Object getBean(java.lang.String beanName)

containsBean

protected boolean containsBean(java.lang.String beanName)

setBundleAccessor

public void setBundleAccessor(BundleAccessor bundleAccessor)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.