Class StandaloneSpringPentahoObjectFactory
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
-
- org.pentaho.platform.engine.core.system.objfac.StandaloneSpringPentahoObjectFactory
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoObjectFactory
public class StandaloneSpringPentahoObjectFactory extends AbstractSpringPentahoObjectFactory
This factory implementation creates and uses a self-contained SpringApplicationContext
which is not tied to or accesible by any other parts of the application.- Author:
- Aaron Phillips
- See Also:
AbstractSpringPentahoObjectFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
AbstractSpringPentahoObjectFactory.BeanDefinitionNamePair, AbstractSpringPentahoObjectFactory.BeanDefinitionPriorityComparitor
-
-
Field Summary
-
Fields inherited from class org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory
beanFactory, logger, PRIORITY
-
-
Constructor Summary
Constructors Constructor Description StandaloneSpringPentahoObjectFactory()
StandaloneSpringPentahoObjectFactory(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandaloneSpringPentahoObjectFactory
getInstance(org.springframework.context.ApplicationContext applicationContext)
Factory method guaranteed to return the same instance for a given applicationContext.void
init(String configFile, Object context)
Initializes this object factory by creating a self-contained SpringApplicationContext
if one is not passed in.-
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
-
-
-
-
Constructor Detail
-
StandaloneSpringPentahoObjectFactory
public StandaloneSpringPentahoObjectFactory()
-
StandaloneSpringPentahoObjectFactory
public StandaloneSpringPentahoObjectFactory(String name)
-
-
Method Detail
-
init
public void init(String configFile, Object context)
Initializes this object factory by creating a self-contained SpringApplicationContext
if one is not passed in.- Parameters:
configFile
- the Spring bean definition XML filecontext
- theApplicationContext
object, if null, then this method will create one
-
getInstance
public static StandaloneSpringPentahoObjectFactory getInstance(org.springframework.context.ApplicationContext applicationContext)
Factory method guaranteed to return the same instance for a given applicationContext.- Parameters:
applicationContext
-- Returns:
-
-