Class StandaloneSpringPentahoObjectFactory

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IPentahoObjectFactory

    public class StandaloneSpringPentahoObjectFactory
    extends AbstractSpringPentahoObjectFactory
    This factory implementation creates and uses a self-contained Spring ApplicationContext which is not tied to or accesible by any other parts of the application.
    Author:
    Aaron Phillips
    See Also:
    AbstractSpringPentahoObjectFactory
    • 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 Spring ApplicationContext if one is not passed in.
        Parameters:
        configFile - the Spring bean definition XML file
        context - the ApplicationContext 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: