public class WebSpringPentahoObjectFactory extends AbstractSpringPentahoObjectFactory
WebApplicationContext
has
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: see
AbstractSpringPentahoObjectFactory
for 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.
AbstractSpringPentahoObjectFactory
,
http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes
AbstractSpringPentahoObjectFactory.BeanDefinitionNamePair, AbstractSpringPentahoObjectFactory.BeanDefinitionPriorityComparitor
beanFactory, logger, PRIORITY
DEFAULT_PRIORTIY
Constructor and Description |
---|
WebSpringPentahoObjectFactory() |
Modifier and Type | Method and Description |
---|---|
void |
init(String configFile,
Object context)
Initializes this object factory by setting the internal bean factory to the
WebApplicationContext instance
managed by Spring. |
equals, get, get, get, getAll, getAll, getImplementingClass, getName, getObjectReference, getObjectReference, getObjectReferences, getObjectReferences, hashCode, instanceClass, instanceClass, instanceClass, objectDefined, objectDefined, retreiveObjects, retrieveViaSpring, setBeanFactory
public void init(String configFile, Object context)
WebApplicationContext
instance
managed by Spring.configFile
- ignored for this implementationcontext
- the ServletContext
under which this system is currently running. This is used to retrieve the
Spring WebApplicationContext
.IllegalArgumentException
- if context is not the correct type, only ServletContext is acceptedCopyright © 2017 Hitachi Vantara. All rights reserved.