Package org.eclipse.birt.core.framework
Class PlatformConfig
java.lang.Object
org.eclipse.birt.core.framework.PlatformConfig
- All Implemented Interfaces:
IPlatformConfig
Defines an implementation of IPlatformConfig to access OSGi framework.
implements the interface IPlatformConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMapthe properties that needed when platfrom is running it's an instance of HashMapFields inherited from interface org.eclipse.birt.core.framework.IPlatformConfig
BIRT_HOME, OSGI_ARGUMENTS, OSGI_CONFIGURATION, PLATFORM_CONTEXT, TEMP_DIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getProperty(String name) returns engine temporary directory for temporary filesvoidsetBIRTHome(String birtHome) voidsetOSGiArguments(String[] arguments) voidsetOSGiConfig(Map osgiConfigMap) set the configuration used by the OSGi framework.voidsetPlatformContext(IPlatformContext context) voidsetProperty(String name, Object value) voidsetTempDir(String tmpDir) sets the directory for temporary files
-
Field Details
-
properties
the properties that needed when platfrom is running it's an instance of HashMap
-
-
Constructor Details
-
PlatformConfig
public PlatformConfig()
-
-
Method Details
-
getProperty
-
setProperty
-
getProperties
-
getBIRTHome
-
setBIRTHome
-
getOSGiArguments
-
setOSGiArguments
-
setOSGiConfig
set the configuration used by the OSGi framework. The configuration includes all valid osgi configs except some reserved as follow:- 1. osgi.install.area, using the one defined by BIRT_HOME.
- 2. eclipse.ignoreApp, be true.
- 3. osgi.noShutDown, be true.
- 4. osgi.framework, using the one defined by BIRT_HOME
- 5. osgi.framework.useSystemProperties, be false.
- Parameters:
osgiConfigMap-
-
getOSGiConfig
-
getPlatformContext
-
setPlatformContext
-
setTempDir
sets the directory for temporary files- Parameters:
tmpDir- the directory for temporary files
-
getTempDir
returns engine temporary directory for temporary files- Returns:
- Returns the Temp Directory for engine to write temp files
-