Class StandaloneApplicationContext

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

    public class StandaloneApplicationContext
    extends Object
    implements org.pentaho.platform.api.engine.IApplicationContext
    • Constructor Detail

      • StandaloneApplicationContext

        public StandaloneApplicationContext​(String solutionRootPath,
                                            String applicationPath,
                                            Object context)
      • StandaloneApplicationContext

        public StandaloneApplicationContext​(String solutionRootPath,
                                            String applicationPath)
    • Method Detail

      • setFullyQualifiedServerURL

        public void setFullyQualifiedServerURL​(String fullyQualifiedServerUrl)
        Specified by:
        setFullyQualifiedServerURL in interface org.pentaho.platform.api.engine.IApplicationContext
      • getFileOutputPath

        public String getFileOutputPath​(String path)
        Specified by:
        getFileOutputPath in interface org.pentaho.platform.api.engine.IApplicationContext
      • getSolutionPath

        public String getSolutionPath​(String path)
        Specified by:
        getSolutionPath in interface org.pentaho.platform.api.engine.IApplicationContext
      • setSolutionRootPath

        public void setSolutionRootPath​(String solutionRootPath)
        Specified by:
        setSolutionRootPath in interface org.pentaho.platform.api.engine.IApplicationContext
      • createTempFile

        public File createTempFile​(org.pentaho.platform.api.engine.IPentahoSession session,
                                   String prefix,
                                   String extn,
                                   boolean trackFile)
                            throws IOException
        Specified by:
        createTempFile in interface org.pentaho.platform.api.engine.IApplicationContext
        Throws:
        IOException
      • createTempFile

        public File createTempFile​(org.pentaho.platform.api.engine.IPentahoSession session,
                                   String prefix,
                                   String extn,
                                   File parentDir,
                                   boolean trackFile)
                            throws IOException
        Specified by:
        createTempFile in interface org.pentaho.platform.api.engine.IApplicationContext
        Throws:
        IOException
      • getPentahoServerName

        public String getPentahoServerName()
        Specified by:
        getPentahoServerName in interface org.pentaho.platform.api.engine.IApplicationContext
      • getServerPort

        public int getServerPort()
      • setBaseUrl

        @Deprecated
        public void setBaseUrl​(String baseUrl)
        Deprecated.
        Specified by:
        setBaseUrl in interface org.pentaho.platform.api.engine.IApplicationContext
      • getBaseUrl

        @Deprecated
        public String getBaseUrl()
        Deprecated.
        Specified by:
        getBaseUrl in interface org.pentaho.platform.api.engine.IApplicationContext
      • getFullyQualifiedServerURL

        public String getFullyQualifiedServerURL()
        Specified by:
        getFullyQualifiedServerURL in interface org.pentaho.platform.api.engine.IApplicationContext
      • getApplicationPath

        public String getApplicationPath​(String path)
        Specified by:
        getApplicationPath in interface org.pentaho.platform.api.engine.IApplicationContext
      • getProperty

        public String getProperty​(String key)
        Specified by:
        getProperty in interface org.pentaho.platform.api.engine.IApplicationContext
      • getProperty

        public String getProperty​(String key,
                                  String defaultValue)
        Specified by:
        getProperty in interface org.pentaho.platform.api.engine.IApplicationContext
      • setProperties

        public void setProperties​(Properties props)
      • addEntryPointHandler

        public void addEntryPointHandler​(org.pentaho.platform.api.engine.IPentahoSystemEntryPoint entryPoint)
        Specified by:
        addEntryPointHandler in interface org.pentaho.platform.api.engine.IApplicationContext
      • removeEntryPointHandler

        public void removeEntryPointHandler​(org.pentaho.platform.api.engine.IPentahoSystemEntryPoint entryPoint)
        Specified by:
        removeEntryPointHandler in interface org.pentaho.platform.api.engine.IApplicationContext
      • addExitPointHandler

        public void addExitPointHandler​(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
        Specified by:
        addExitPointHandler in interface org.pentaho.platform.api.engine.IApplicationContext
      • removeExitPointHandler

        public void removeExitPointHandler​(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
        Specified by:
        removeExitPointHandler in interface org.pentaho.platform.api.engine.IApplicationContext
      • invokeEntryPoints

        public void invokeEntryPoints()
        Specified by:
        invokeEntryPoints in interface org.pentaho.platform.api.engine.IApplicationContext
      • invokeExitPoints

        public void invokeExitPoints()
        Specified by:
        invokeExitPoints in interface org.pentaho.platform.api.engine.IApplicationContext
      • getContext

        public Object getContext()
        Specified by:
        getContext in interface org.pentaho.platform.api.engine.IApplicationContext
      • setContext

        public void setContext​(Object context)
        Specified by:
        setContext in interface org.pentaho.platform.api.engine.IApplicationContext
      • getSolutionRootPath

        public String getSolutionRootPath()
        Specified by:
        getSolutionRootPath in interface org.pentaho.platform.api.engine.IApplicationContext