public class EEVMType extends AbstractVMInstallType
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_EE_VM_TYPE
VM Type id
|
static java.lang.String |
VAR_EE_HOME
Substitution in EE file - replaced with directory of EE file,
to support absolute path names where needed.
|
| Constructor and Description |
|---|
EEVMType() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
detectInstallLocation()
Tries to detect an installed VM that matches this VM install type.
|
protected IVMInstall |
doCreateVMInstall(java.lang.String id)
Subclasses should return a new instance of the appropriate
IVMInstall subclass from this method. |
LibraryLocation[] |
getDefaultLibraryLocations(java.io.File installLocationOrDefinitionFile)
Returns a collection of
LibraryLocations that represent the
default system libraries of this VM install type, if a VM was installed
at the given installLocation. |
static java.net.URL |
getIndexLocation(java.util.Map<java.lang.String,java.lang.String> properties)
Returns the default index location specified in the properties or
null
if none. |
static java.net.URL |
getJavadocLocation(java.util.Map<java.lang.String,java.lang.String> properties)
Returns the default javadoc location specified in the properties or
null
if none. |
java.lang.String |
getName()
Returns the display name of this VM type.
|
static IStatus |
validateDefinitionFile(ExecutionEnvironmentDescription description)
Returns a status indicating if the given definition file is valid.
|
IStatus |
validateInstallLocation(java.io.File installLocation)
Validates the given location of a VM installation.
|
createVMInstall, disposeVMInstall, findVMInstall, findVMInstallByName, getDefaultJavadocLocation, getDefaultVMArguments, getId, getVMInstalls, setInitializationDatapublic static final java.lang.String ID_EE_VM_TYPE
public static final java.lang.String VAR_EE_HOME
public static java.net.URL getJavadocLocation(java.util.Map<java.lang.String,java.lang.String> properties)
null
if none.properties - properties mapnull if nonepublic static java.net.URL getIndexLocation(java.util.Map<java.lang.String,java.lang.String> properties)
null
if none.properties - properties mapnull if nonepublic static IStatus validateDefinitionFile(ExecutionEnvironmentDescription description)
description - definition fileprotected IVMInstall doCreateVMInstall(java.lang.String id)
AbstractVMInstallTypeIVMInstall subclass from this method.doCreateVMInstall in class AbstractVMInstallTypeid - The vm's id. The IVMInstall instance that is created must
return id from its getId() method.
Must not be null.null.public java.io.File detectInstallLocation()
IVMInstallTypenull if they
can't assure that a given vm install matches this IVMInstallType.null if unable
to locate an installed VM.public LibraryLocation[] getDefaultLibraryLocations(java.io.File installLocationOrDefinitionFile)
IVMInstallTypeLibraryLocations that represent the
default system libraries of this VM install type, if a VM was installed
at the given installLocation.
The returned LibraryLocations may not exist if the
installLocation is not a valid install location.installLocationOrDefinitionFile - home locationinstallLocation.LibraryLocation,
IVMInstallType.validateInstallLocation(File)public java.lang.String getName()
IVMInstallTypepublic IStatus validateInstallLocation(java.io.File installLocation)
IVMInstallTypeFor example, an implementation might check whether the VM executable is present.
installLocation - the root directory of a potential installation for
this type of VM