lucee.Component
commandbox.system.endpoints.Java
Copyright Since 2014 CommandBox by Ortus Solutions, Corp
www.coldbox.org | www.ortussolutions.com
I am the Java endpoint. I interact with the AdoptOpenJDK API to get OpenJDK builds.
I will spoof a package around the download so CommandBox doesn't try to unzip the JRE itself.
Endpoint IDs are the in the format
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
artifactService
|
true
|
false
|
|
any
|
ConfigService
|
true
|
false
|
|
any
|
consoleLogger
|
true
|
false
|
|
any
|
CR
|
true
|
false
|
|
any
|
filesystemUtil
|
true
|
false
|
|
any
|
folderEndpoint
|
true
|
false
|
|
any
|
JSONService
|
true
|
false
|
|
string
|
namePrefixes
|
true
|
false
|
|
any
|
PackageService
|
true
|
false
|
|
any
|
progressableDownloader
|
true
|
false
|
|
any
|
progressBar
|
true
|
false
|
|
any
|
tempDir
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
|
|
| Method Summary | |
|---|---|
string
|
getArtifactService()
|
string
|
getConfigService()
|
string
|
getConsoleLogger()
|
string
|
getCR()
|
any
|
getDefaultName(string package)
|
any
|
getDefaultNameFromStruct(struct javaDetails)
|
string
|
getFilesystemUtil()
|
string
|
getFolderEndpoint()
|
string
|
getJSONService()
|
string
|
getNamePrefixes()
|
string
|
getPackageService()
|
string
|
getProgressableDownloader()
|
string
|
getProgressBar()
|
string
|
getTempDir()
|
any
|
getUpdate(string package, string version, [boolean verbose='false'])
|
string
|
getWirebox()
|
any
|
parseDetails(string ID)
Take a string like OpenJDK8_jre_x64_windows_hotspot_8u181b13. |
string
|
resolvePackage(string package, [boolean verbose='false'])
|
any
|
serveFromArtifacts([any package], [any version], [any lockVersion])
|
any
|
setArtifactService(any artifactService)
|
any
|
setConfigService(any ConfigService)
|
any
|
setConsoleLogger(any consoleLogger)
|
any
|
setCR(any CR)
|
any
|
setFilesystemUtil(any filesystemUtil)
|
any
|
setFolderEndpoint(any folderEndpoint)
|
any
|
setJSONService(any JSONService)
|
any
|
setNamePrefixes(string namePrefixes)
|
any
|
setPackageService(any PackageService)
|
any
|
setProgressableDownloader(any progressableDownloader)
|
any
|
setProgressBar(any progressBar)
|
any
|
setTempDir(any tempDir)
|
any
|
setWirebox(any wirebox)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - artifactServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - ConfigServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - logbox:logger:consoleserializable - trueaccess - publicrequired - falsereturntype - anyinject - CR@constantsserializable - trueaccess - publicrequired - falsereturntype - anyinject - fileSystemserializable - trueaccess - publicrequired - falsereturntype - anyinject - commandbox.system.endpoints.Folderserializable - trueaccess - publicrequired - falsereturntype - anyinject - JSONServiceserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - packageServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - ProgressableDownloaderserializable - trueaccess - publicrequired - falsereturntype - anyinject - ProgressBarserializable - trueaccess - publicrequired - falsereturntype - anyinject - tempDir@constantsserializable - trueaccess - publicrequired - falsereturntype - anyinject - wireboxserializable - true| Method Detail |
|---|
getDefaultName
in interface
IEndpoint
packagejavaDetails
getUpdate
in interface
IEndpoint
packageversionverboseTake a string like OpenJDK8_jre_x64_windows_hotspot_8u181b13 and parse out all the details
ID
resolvePackage
in interface
IEndpoint
packageverbosepackageversionlockVersionartifactServiceConfigServiceconsoleLoggerCRfilesystemUtilfolderEndpointJSONServicenamePrefixesPackageServiceprogressableDownloaderprogressBartempDirwirebox