Class WebSpringPentahoObjectFactory
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
-
- org.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoObjectFactory
public class WebSpringPentahoObjectFactory extends org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactoryThis factory implementation can be used in a web environment in which a SpringWebApplicationContexthas already been created during initialization of the web application. WebSpringPentahoObjectFactory will delegate object creation and management to the Spring context. There is one exception to this rule: seeAbstractSpringPentahoObjectFactoryfor more details.The Spring bean factory supports the binding of objects to particular scopes. See Spring documentation for description of the scope types: singleton, prototype, session, and request. The latter two apply only in a web context.
- Author:
- Aaron Phillips
- See Also:
AbstractSpringPentahoObjectFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.BeanDefinitionNamePair, org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.BeanDefinitionPriorityComparitor
-
-
Constructor Summary
Constructors Constructor Description WebSpringPentahoObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(String configFile, Object context)Initializes this object factory by setting the internal bean factory to theWebApplicationContextinstance managed by Spring.-
Methods inherited from class org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
equals, get, get, get, getAll, getAll, getImplementingClass, getName, getObjectReference, getObjectReference, getObjectReferences, getObjectReferences, hashCode, instanceClass, instanceClass, instanceClass, objectDefined, objectDefined, retreiveObjects, retrieveViaSpring, setBeanFactory
-
-
-
-
Method Detail
-
init
public void init(String configFile, Object context)
Initializes this object factory by setting the internal bean factory to theWebApplicationContextinstance managed by Spring.- Parameters:
configFile- ignored for this implementationcontext- theServletContextunder which this system is currently running. This is used to retrieve the SpringWebApplicationContext.- Throws:
IllegalArgumentException- if context is not the correct type, only ServletContext is accepted
-
-