Class StandaloneApplicationContext
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.StandaloneApplicationContext
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IApplicationContext
public class StandaloneApplicationContext extends Object implements org.pentaho.platform.api.engine.IApplicationContext
-
-
Constructor Summary
Constructors Constructor Description StandaloneApplicationContext(String solutionRootPath, String applicationPath)
StandaloneApplicationContext(String solutionRootPath, String applicationPath, Object context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addEntryPointHandler(org.pentaho.platform.api.engine.IPentahoSystemEntryPoint entryPoint)
void
addExitPointHandler(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
File
createTempFile(org.pentaho.platform.api.engine.IPentahoSession session, String prefix, String extn, boolean trackFile)
File
createTempFile(org.pentaho.platform.api.engine.IPentahoSession session, String prefix, String extn, File parentDir, boolean trackFile)
String
getApplicationPath(String path)
String
getBaseUrl()
Deprecated.Object
getContext()
String
getFileOutputPath(String path)
String
getFullyQualifiedServerURL()
String
getPentahoServerName()
String
getProperty(String key)
String
getProperty(String key, String defaultValue)
int
getServerPort()
String
getSolutionPath(String path)
String
getSolutionRootPath()
void
invokeEntryPoints()
void
invokeExitPoints()
void
removeEntryPointHandler(org.pentaho.platform.api.engine.IPentahoSystemEntryPoint entryPoint)
void
removeExitPointHandler(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
void
setBaseUrl(String baseUrl)
Deprecated.void
setContext(Object context)
void
setFullyQualifiedServerURL(String fullyQualifiedServerUrl)
void
setProperties(Properties props)
void
setSolutionRootPath(String solutionRootPath)
-
-
-
Method Detail
-
setFullyQualifiedServerURL
public void setFullyQualifiedServerURL(String fullyQualifiedServerUrl)
- Specified by:
setFullyQualifiedServerURL
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getFileOutputPath
public String getFileOutputPath(String path)
- Specified by:
getFileOutputPath
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getSolutionPath
public String getSolutionPath(String path)
- Specified by:
getSolutionPath
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
setSolutionRootPath
public void setSolutionRootPath(String solutionRootPath)
- Specified by:
setSolutionRootPath
in interfaceorg.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 interfaceorg.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 interfaceorg.pentaho.platform.api.engine.IApplicationContext
- Throws:
IOException
-
getPentahoServerName
public String getPentahoServerName()
- Specified by:
getPentahoServerName
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getServerPort
public int getServerPort()
-
setBaseUrl
@Deprecated public void setBaseUrl(String baseUrl)
Deprecated.- Specified by:
setBaseUrl
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getBaseUrl
@Deprecated public String getBaseUrl()
Deprecated.- Specified by:
getBaseUrl
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getFullyQualifiedServerURL
public String getFullyQualifiedServerURL()
- Specified by:
getFullyQualifiedServerURL
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getApplicationPath
public String getApplicationPath(String path)
- Specified by:
getApplicationPath
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getProperty
public String getProperty(String key)
- Specified by:
getProperty
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getProperty
public String getProperty(String key, String defaultValue)
- Specified by:
getProperty
in interfaceorg.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 interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
removeEntryPointHandler
public void removeEntryPointHandler(org.pentaho.platform.api.engine.IPentahoSystemEntryPoint entryPoint)
- Specified by:
removeEntryPointHandler
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
addExitPointHandler
public void addExitPointHandler(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
- Specified by:
addExitPointHandler
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
removeExitPointHandler
public void removeExitPointHandler(org.pentaho.platform.api.engine.IPentahoSystemExitPoint exitPoint)
- Specified by:
removeExitPointHandler
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
invokeEntryPoints
public void invokeEntryPoints()
- Specified by:
invokeEntryPoints
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
invokeExitPoints
public void invokeExitPoints()
- Specified by:
invokeExitPoints
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getContext
public Object getContext()
- Specified by:
getContext
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
setContext
public void setContext(Object context)
- Specified by:
setContext
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
getSolutionRootPath
public String getSolutionRootPath()
- Specified by:
getSolutionRootPath
in interfaceorg.pentaho.platform.api.engine.IApplicationContext
-
-