public final class JavaPlatformManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_INSTALLED_PLATFORMS
Property name of the installedPlatforms property
|
Constructor and Description |
---|
JavaPlatformManager()
Creates a new instance of JavaPlatformManager
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds PropertyChangeListener to the JavaPlatformManager, the listener is notified
when the platform is added,removed or modified.
|
static JavaPlatformManager |
getDefault()
Gets an instance of JavaPlatformManager.
|
JavaPlatform |
getDefaultPlatform()
Returns default platform.
|
JavaPlatform[] |
getInstalledPlatforms()
Gets an array of JavaPlatfrom objects.
|
JavaPlatform[] |
getPlatforms(String platformDisplayName,
Specification platformSpec)
Returns platform given by display name and/or specification.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes PropertyChangeListener to the JavaPlatformManager.
|
public static final String PROP_INSTALLED_PLATFORMS
public JavaPlatformManager()
public static JavaPlatformManager getDefault()
public JavaPlatform getDefaultPlatform()
public JavaPlatform[] getInstalledPlatforms()
public JavaPlatform[] getPlatforms(String platformDisplayName, Specification platformSpec)
platformDisplayName
- display name of platform or null for any name.platformSpec
- Specification of platform or null for platform of any type, in the specification null means all.
Specification with null profiles means none or any profile.
Specification with Profile(null,null) means any profile but at least 1.
For example Specification ("CLDC", new Profile[] { new Profile("MIMDP",null), new Profile(null,null)})
matches all CLDC platforms with MIDP profile of any versions and any additional profile.public void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener, can not be nullpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener, can not be null