public class ProductDetectorDefault extends java.lang.Object implements IProductDetector
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
BIN
'bin' the sub-folder (relative to product home) holding executables
|
(package private) static java.lang.String |
REG_HKLM_ST
'HKLM\Software\' registry path for application on 32-bit OS
|
(package private) static java.lang.String |
REG_HKLM_ST_WOW6432
'HKLM\Software\Wow6432Node' registry path for 32-bit application on 64-bit OS
|
Constructor and Description |
---|
ProductDetectorDefault() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
gerPreferredHome()
Return null.
|
java.lang.String[] |
getBins()
Return an array containing one sub folder 'bin'.
|
java.util.Map<java.lang.String,java.lang.String> |
getHomes()
Return an empty Map.
|
java.lang.String[] |
getPossibleExecutables()
Return an empty String array.
|
java.io.File |
getValidExecutable(java.io.File home,
java.lang.String defaultExecutable)
Implement the search logic suggested in the interface.
1. |
static final java.lang.String REG_HKLM_ST
static final java.lang.String REG_HKLM_ST_WOW6432
static final java.lang.String BIN
public java.util.Map<java.lang.String,java.lang.String> getHomes()
getHomes
in interface IProductDetector
public java.lang.String gerPreferredHome()
gerPreferredHome
in interface IProductDetector
public java.lang.String[] getBins()
getBins
in interface IProductDetector
public java.lang.String[] getPossibleExecutables()
getPossibleExecutables
in interface IProductDetector
public java.io.File getValidExecutable(java.io.File home, java.lang.String defaultExecutable) throws java.io.FileNotFoundException
getBins()
sub folder of product homegetPossibleExecutables()
under the product homegetValidExecutable
in interface IProductDetector
home
- File, the product home directorydefaultExecutable
- String, the default executable. It could be name or "path relative to home".java.io.FileNotFoundException
- if no executable could be foundProductDetectorDefault
Copyright © SAS Institute. All Rights Reserved.