public class Platform
extends java.lang.Object
EclipsePlatform
or ServerPlatform
class.
This class is a singleton.Modifier and Type | Field and Description |
---|---|
static int |
ECLIPSE_PLATFORM |
static int |
JAVA_PLATFORM |
protected static PlatformLauncher |
launcher |
protected static java.util.logging.Logger |
log |
protected static IPlatform |
platform |
protected static int |
platformType |
static java.lang.String |
PROPERTY_BIRT_HOME |
static java.lang.String |
PROPERTY_RUN_UNDER_ECLIPSE
Deprecated.
since BIRT 2.1
|
static int |
SERVER_PLATFORM
Deprecated.
since BIRT 2.1
|
static int |
UNKNOWN_PLATFORM |
Constructor and Description |
---|
Platform() |
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
asLocalURL(java.net.URL url)
Deprecated.
since BIRT 2.1
|
static java.lang.Object |
createFactoryObject(java.lang.String extensionId)
create an object inside the OSGIframework and give it out of the
framework.
|
protected static PlatformLauncher |
createPlatformLauncher(PlatformConfig config) |
static java.lang.Object |
enterPlatformContext() |
static void |
exitPlatformContext(java.lang.Object context) |
static java.net.URL |
find(IBundle bundle,
IPlatformPath path)
Deprecated.
since BIRT 2.1
|
static IAdapterManager |
getAdapterManager() |
static IBundle |
getBundle(java.lang.String symbolicName)
Deprecated.
since BIRT 2.1
|
static java.lang.String |
getDebugOption(java.lang.String name)
Deprecated.
since BIRT 2.1
|
static java.net.URL |
getEntry(java.lang.String symbolicName,
java.lang.String resource) |
static IExtensionRegistry |
getExtensionRegistry() |
static java.lang.String |
getOS() |
static int |
getPlatformType()
Deprecated.
since BIRT 2.1
|
static java.lang.String |
getStateLocation(java.lang.String symbolicName) |
static void |
initialize(PlatformConfig config)
Deprecated.
since BIRT 2.1
|
static void |
intializeTracing(java.lang.String pluginName) |
static boolean |
runningEclipse()
Deprecated.
since BIRT 2.1
|
static 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.
|
public static final java.lang.String PROPERTY_RUN_UNDER_ECLIPSE
public static final java.lang.String PROPERTY_BIRT_HOME
public static int UNKNOWN_PLATFORM
public static int ECLIPSE_PLATFORM
public static final int SERVER_PLATFORM
public static int JAVA_PLATFORM
protected static int platformType
protected static IPlatform platform
protected static PlatformLauncher launcher
protected static java.util.logging.Logger log
public static void startup() throws BirtException
BirtException
public static void startup(PlatformConfig config) throws BirtException
config
- PlatformConfigBirtException
protected static PlatformLauncher createPlatformLauncher(PlatformConfig config)
public static void shutdown()
public static void initialize(PlatformConfig config)
context
- org.eclipse.birt.core.Platform.startup(IPlatformContext context)
public static void setPlatform(IPlatform platform)
platform
- org.eclipes.birt.core.plugin.CorePlugin#start(BundleContext)
public static IExtensionRegistry getExtensionRegistry()
org.eclipse.core.runtime.IExtensionRegistry
public static IAdapterManager getAdapterManager()
public static IBundle getBundle(java.lang.String symbolicName)
symbolicName
- public static java.net.URL find(IBundle bundle, IPlatformPath path)
bundle
- path
- public static int getPlatformType()
public static java.net.URL asLocalURL(java.net.URL url) throws java.io.IOException
url
- java.io.IOException
public static boolean runningEclipse()
public static void intializeTracing(java.lang.String pluginName)
public static java.lang.String getDebugOption(java.lang.String name)
name
- org.eclipse.core.runtime.Platform.getDebugOption(String name)
public static java.lang.Object createFactoryObject(java.lang.String extensionId)
extensionId
- factory extension idorg.eclipse.birt.core.IPlatform#
public static java.lang.Object enterPlatformContext()
public static void exitPlatformContext(java.lang.Object context)
public static java.lang.String getOS()
public static java.lang.String getStateLocation(java.lang.String symbolicName)
public static java.net.URL getEntry(java.lang.String symbolicName, java.lang.String resource)
Copyright © 2014 OpenText Corp. All rights reserved.