|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.plateng.gpr.registry.RegistryInfoImpl
public class RegistryInfoImpl
Inspects the registry.xml file of a BEA Home directory for installed products and subcomponents.
| Constructor Summary | |
|---|---|
RegistryInfoImpl(java.lang.String beaHomeDir)
Creates a RegistryInfoImpl instance describing the registry information for the given BEA Home directory. |
|
| Method Summary | |
|---|---|
static java.lang.String[] |
getBEAHomes()
Returns a list of all BEA Home directories on the current machine. |
java.lang.String[] |
getJavaHomes()
Returns the locations of all Java installations in the current BEA Home directory. |
java.lang.String |
getJavaVendor(java.lang.String javaHome)
For a given Java home, returns the vendor of the JVM. |
java.lang.String |
getJavaVersion(java.lang.String javaHome)
Given a Java home, returns the JVM version |
ProductInfo |
getProductInfo(java.lang.String productName,
java.lang.String productVersion)
Returns an object containing information about the installed product that matches the parameters supplied. |
ProductInfo[] |
getProductInfos()
Returns information about all the products installed in the current BEA Home directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryInfoImpl(java.lang.String beaHomeDir)
throws java.lang.IllegalArgumentException,
RegistryParsingException
RegistryInfoImpl instance describing registry information for the given BEA Home directory.
beaHomeDir - The absolute path to the BEA Home directory
java.lang.IllegalArgumentException - if the parameter is null, or is an empty string,
or if the parameter beaHomeDir does not
exist in the file system.
RegistryParsingException - if there is an error parsing the registry| Method Detail |
|---|
public java.lang.String getJavaVendor(java.lang.String javaHome)
throws java.lang.IllegalArgumentException
getJavaVendor in interface RegistryInfojavaHome - The absolute location to the Java home
java.lang.IllegalArgumentException - if the parameter is null or is an empty string
public java.lang.String getJavaVersion(java.lang.String javaHome)
throws java.lang.IllegalArgumentException
getJavaVersion in interface RegistryInfojavaHome - The absolute location of the Java home
java.lang.IllegalArgumentException - if the parameter is null or is an empty string
public ProductInfo getProductInfo(java.lang.String productName,
java.lang.String productVersion)
throws java.lang.IllegalArgumentException
getProductInfo in interface RegistryInfoproductName - The name of the product to returnproductVersion - The product version. For example: 7.0, 8.1, or 9.0.
ProductInfo object, which contains the product information,
or null if no match is found
java.lang.IllegalArgumentException - if the parameter is either null or is an empty stringpublic ProductInfo[] getProductInfos()
ProductInfo object is returned for each product version.
getProductInfos in interface RegistryInfoProductInfo objects, which contains the information for all
the products installed.public java.lang.String[] getJavaHomes()
getJavaHomes in interface RegistryInfoString containing the Java homes that are
installed in the current BEA Home directory.public static java.lang.String[] getBEAHomes()
String objects, each representing a BEA Home directory, or null if
no BEA Home directories are found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||