lucee.Component
commandbox.system.services.JavaService
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I handle Java installs for servers to use
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
configService
|
true
|
false
|
|
any
|
fileSystemUtil
|
true
|
false
|
|
any
|
interceptorService
|
true
|
false
|
|
any
|
javaDirectory
|
true
|
false
|
|
any
|
packageService
|
true
|
false
|
|
any
|
systemSettings
|
true
|
false
|
|
| Method Summary | |
|---|---|
string
|
getConfigService()
|
any
|
getCurrentCPUArch()
Guess the current machine's CPU arhctecture. |
any
|
getCurrentOS()
Guess the current OS. |
string
|
getFileSystemUtil()
|
string
|
getInterceptorService()
|
string
|
getJavaDirectory()
|
string
|
getJavaInstallDirectory()
Returns the full path to where server java installs are stored. |
any
|
getJavaInstallPath(string ID, [boolean verbose='false'])
Install java version if needed, and return installation folder. |
string
|
getPackageService()
|
string
|
getSystemSettings()
|
any
|
installJava(string ID, [boolean verbose='false'])
Install a java version. |
boolean
|
javaInstallExists(string ID)
Detect whether a specific version is installed. |
struct
|
listJavaInstalls()
List the Java installations including the Java install CommandBox is running. |
any
|
onDIComplete()
DI complete. |
any
|
postInstall()
Sort of hacky way to capture the last place we installed Java into. |
any
|
setConfigService(any configService)
|
any
|
setFileSystemUtil(any fileSystemUtil)
|
any
|
setInterceptorService(any interceptorService)
|
any
|
setJavaDirectory(any javaDirectory)
|
any
|
setPackageService(any packageService)
|
any
|
setSystemSettings(any systemSettings)
|
any
|
uninstallJava(string ID)
Remove a Java install. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - configServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - fileSystemserializable - trueaccess - publicrequired - falsereturntype - anyinject - InterceptorServiceserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - packageServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - systemSettingsserializable - true| Method Detail |
|---|
Guess the current machine's CPU arhctecture TODO: detect ppc64, s390x, and ppc64le
Guess the current OS
Returns the full path to where server java installs are stored
Install java version if needed, and return installation folder
ID - Full ID of java installationverbose - Enable verbose output from the install commandInstall a java version
ID - installation ID as defined by Java endpoint. If no endpoint name space, defaults to "java:"verbose - Enable verbose output from the install commandDetect whether a specific version is installed
ID - Full ID of java installationList the Java installations including the Java install CommandBox is running
DI complete
Sort of hacky way to capture the last place we installed Java into
configServicefileSystemUtilinterceptorServicejavaDirectorypackageServicesystemSettingsRemove a Java install
ID - Full ID of java installation