Package org.eclipse.birt.core.framework
Class Platform
java.lang.Object
org.eclipse.birt.core.framework.Platform
Defines a generic Platform class that wraps around an
EclipsePlatform
or ServerPlatform
class.
This class is a singleton.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
protected static PlatformLauncher
protected static Logger
protected static IPlatform
protected static int
static final String
static final String
Deprecated.since BIRT 2.1static final int
Deprecated.since BIRT 2.1static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URL
asLocalURL
(URL url) Deprecated.since BIRT 2.1static Object
createFactoryObject
(String extensionId) create an object inside the OSGIframework and give it out of the framework.protected static PlatformLauncher
createPlatformLauncher
(PlatformConfig config) static Object
static void
exitPlatformContext
(Object context) static URL
find
(IBundle bundle, IPlatformPath path) Deprecated.since BIRT 2.1static org.eclipse.core.runtime.IAdapterManager
static IBundle
Deprecated.since BIRT 2.1static String
getDebugOption
(String name) Deprecated.since BIRT 2.1static URL
static IExtensionRegistry
static String
getOS()
static int
Deprecated.since BIRT 2.1static String
getStateLocation
(String symbolicName) static void
initialize
(PlatformConfig config) Deprecated.since BIRT 2.1static void
intializeTracing
(String pluginName) static boolean
Deprecated.since BIRT 2.1static void
setPlatform
(IPlatform platform) this class can only be called by org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext)static void
shutdown()
static void
startup()
static void
startup
(PlatformConfig config) startup the platform.
-
Field Details
-
PROPERTY_RUN_UNDER_ECLIPSE
Deprecated.since BIRT 2.1- See Also:
-
PROPERTY_BIRT_HOME
- See Also:
-
UNKNOWN_PLATFORM
public static int UNKNOWN_PLATFORM -
ECLIPSE_PLATFORM
public static int ECLIPSE_PLATFORM -
SERVER_PLATFORM
Deprecated.since BIRT 2.1- See Also:
-
JAVA_PLATFORM
public static int JAVA_PLATFORM -
platformType
protected static int platformType -
platform
-
launcher
-
log
-
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
startup
- Throws:
BirtException
-
startup
startup the platform. The PlatformContext is get from the configuration.- Parameters:
config
- PlatformConfig- Throws:
BirtException
-
createPlatformLauncher
-
shutdown
public static void shutdown() -
initialize
Deprecated.since BIRT 2.1- Parameters:
context
-
-
setPlatform
this class can only be called by org.eclipse.birt.core.plugin.CorePlugin#start(BundleContext)- Parameters:
platform
-- See Also:
-
org.eclipes.birt.core.plugin.CorePlugin#start(BundleContext)
-
getExtensionRegistry
- Returns:
- an extension registry
- See Also:
-
IExtensionRegistry
-
getAdapterManager
public static org.eclipse.core.runtime.IAdapterManager getAdapterManager() -
getBundle
Deprecated.since BIRT 2.1- Parameters:
symbolicName
-- Returns:
-
find
Deprecated.since BIRT 2.1- Parameters:
bundle
-path
-- Returns:
-
getPlatformType
Deprecated.since BIRT 2.1- Returns:
- the type of the platform. Available values are ECLIPSE_PLATFORM and SERVER_PLATFORM.
-
asLocalURL
Deprecated.since BIRT 2.1- Parameters:
url
-- Returns:
- Throws:
IOException
-
runningEclipse
Deprecated.since BIRT 2.1Checks whether Eclipse is running- Returns:
- whether we are running in Eclipse
-
intializeTracing
-
getDebugOption
Deprecated.since BIRT 2.1- Parameters:
name
-- Returns:
-
createFactoryObject
create an object inside the OSGIframework and give it out of the framework. This object can be used in client side. If a bundle need export some function outside of the framework, it need implement a extension "org.eclipse.birt.core.FactoryService".- Parameters:
extensionId
- factory extension id- Returns:
- the service object.
-
enterPlatformContext
-
exitPlatformContext
-
getOS
-
getStateLocation
-
getEntry
-