commandbox.system.endpoints

Class Java

lucee.Component
    extended by commandbox.system.endpoints.Java
All Implemented Interfaces:
IEndpoint

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 _____[:lockVersion] Ex: OpenJDK8_jre_x64_windows_hotspot_8u181b13 : openjdk8, openjdk9, openjdk10, etc... : jdk, jre : x64, x32, ppc64, s390x, ppc64le, aarch64 : windows, linux, mac : hotspot, openj9 : latest, jdk8u172, jdk8u172-b00, etc... Adding :lockVersion to the end will cause the slug reported by the package to be the full ID, not just what the user typed

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Property Summary
    type property default serializable required
    any CR


    • access = public
    • returntype = any
    • inject = CR@constants
    true false
    any ConfigService


    • access = public
    • returntype = any
    • inject = ConfigService
    true false
    any JSONService


    • access = public
    • returntype = any
    • inject = JSONService
    true false
    any PackageService


    • access = public
    • returntype = any
    • inject = packageService
    true false
    any artifactService


    • access = public
    • returntype = any
    • inject = artifactService
    true false
    any consoleLogger


    • access = public
    • returntype = any
    • inject = logbox:logger:console
    true false
    any filesystemUtil


    • access = public
    • returntype = any
    • inject = fileSystem
    true false
    any folderEndpoint


    • access = public
    • returntype = any
    • inject = commandbox.system.endpoints.Folder
    true false
    string namePrefixes


    • access = public
    • returntype = any
    true false
    any progressBar


    • access = public
    • returntype = any
    • inject = ProgressBar
    true false
    any progressableDownloader


    • access = public
    • returntype = any
    • inject = ProgressableDownloader
    true false
    any tempDir


    • access = public
    • returntype = any
    • inject = tempDir@constants
    true false
    any wirebox


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init()
    Method Summary
    string getArtifactService()
    string getCR()
    string getConfigService()
    string getConsoleLogger()
    any getDefaultName(string package)
    any getDefaultNameFromStruct(struct javaDetails)
    string getFilesystemUtil()
    string getFolderEndpoint()
    string getJSONService()
    string getNamePrefixes()
    string getPackageService()
    string getProgressBar()
    string getProgressableDownloader()
    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 setCR(any CR)
    any setConfigService(any ConfigService)
    any setConsoleLogger(any consoleLogger)
    any setFilesystemUtil(any filesystemUtil)
    any setFolderEndpoint(any folderEndpoint)
    any setJSONService(any JSONService)
    any setNamePrefixes(string namePrefixes)
    any setPackageService(any PackageService)
    any setProgressBar(any progressBar)
    any setProgressableDownloader(any progressableDownloader)
    any setTempDir(any tempDir)
    any setWirebox(any wirebox)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    CR

    property any CR

    Attributes:
    access - public
    required - false
    returntype - any
    inject - CR@constants
    serializable - true

    ConfigService

    property any ConfigService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ConfigService
    serializable - true

    JSONService

    property any JSONService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - JSONService
    serializable - true

    PackageService

    property any PackageService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - packageService
    serializable - true

    artifactService

    property any artifactService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - artifactService
    serializable - true

    consoleLogger

    property any consoleLogger

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:console
    serializable - true

    filesystemUtil

    property any filesystemUtil

    Attributes:
    access - public
    required - false
    returntype - any
    inject - fileSystem
    serializable - true

    folderEndpoint

    property any folderEndpoint

    Attributes:
    access - public
    required - false
    returntype - any
    inject - commandbox.system.endpoints.Folder
    serializable - true

    namePrefixes

    property string namePrefixes

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    progressBar

    property any progressBar

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ProgressBar
    serializable - true

    progressableDownloader

    property any progressableDownloader

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ProgressableDownloader
    serializable - true

    tempDir

    property any tempDir

    Attributes:
    access - public
    required - false
    returntype - any
    inject - tempDir@constants
    serializable - true

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - wirebox
    serializable - true

    Method Detail

    getArtifactService

    public string getArtifactService()


    getCR

    public string getCR()


    getConfigService

    public string getConfigService()


    getConsoleLogger

    public string getConsoleLogger()


    getDefaultName

    public any getDefaultName(string package)

    Specified by:
    getDefaultName in interface IEndpoint
    Parameters:
    package

    getDefaultNameFromStruct

    public any getDefaultNameFromStruct(struct javaDetails)

    Parameters:
    javaDetails

    getFilesystemUtil

    public string getFilesystemUtil()


    getFolderEndpoint

    public string getFolderEndpoint()


    getJSONService

    public string getJSONService()


    getNamePrefixes

    public string getNamePrefixes()


    getPackageService

    public string getPackageService()


    getProgressBar

    public string getProgressBar()


    getProgressableDownloader

    public string getProgressableDownloader()


    getTempDir

    public string getTempDir()


    getUpdate

    public any getUpdate(string package, string version, [boolean verbose='false'])

    Specified by:
    getUpdate in interface IEndpoint
    Parameters:
    package
    version
    verbose

    getWirebox

    public string getWirebox()


    parseDetails

    public any parseDetails(string ID)

    Take a string like OpenJDK8_jre_x64_windows_hotspot_8u181b13 and parse out all the details

    Parameters:
    ID

    resolvePackage

    public string resolvePackage(string package, [boolean verbose='false'])

    Specified by:
    resolvePackage in interface IEndpoint
    Parameters:
    package
    verbose

    serveFromArtifacts

    public any serveFromArtifacts([any package], [any version], [any lockVersion])

    Parameters:
    package
    version
    lockVersion

    setArtifactService

    public any setArtifactService(any artifactService)

    Parameters:
    artifactService

    setCR

    public any setCR(any CR)

    Parameters:
    CR

    setConfigService

    public any setConfigService(any ConfigService)

    Parameters:
    ConfigService

    setConsoleLogger

    public any setConsoleLogger(any consoleLogger)

    Parameters:
    consoleLogger

    setFilesystemUtil

    public any setFilesystemUtil(any filesystemUtil)

    Parameters:
    filesystemUtil

    setFolderEndpoint

    public any setFolderEndpoint(any folderEndpoint)

    Parameters:
    folderEndpoint

    setJSONService

    public any setJSONService(any JSONService)

    Parameters:
    JSONService

    setNamePrefixes

    public any setNamePrefixes(string namePrefixes)

    Parameters:
    namePrefixes

    setPackageService

    public any setPackageService(any PackageService)

    Parameters:
    PackageService

    setProgressBar

    public any setProgressBar(any progressBar)

    Parameters:
    progressBar

    setProgressableDownloader

    public any setProgressableDownloader(any progressableDownloader)

    Parameters:
    progressableDownloader

    setTempDir

    public any setTempDir(any tempDir)

    Parameters:
    tempDir

    setWirebox

    public any setWirebox(any wirebox)

    Parameters:
    wirebox