cbjavaloader

Class Loader

lucee.Component
    extended by cbjavaloader.Loader

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Loads External Java Classes, while providing access to ColdFusion classes by interfacing with JavaLoader it Stores a reference in server scope to avoid leakage.

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any staticIDKey
          ID key saved in server scope to avoid leakage.

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


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    any appendPaths(string dirPath, [string filter='*.jar'])
         Appends a directory path of *.
    array arrayOfJars(string dirPath, [string filter='*.jar'])
         Get an array of jars from a directory location.
    any create(string className)
         Retrieves a reference to the java class.
    any getJavaLoader()
         Get the original java loader object from scope.
    private any getJavaLoaderFromScope()
    array getLoadedURLs()
         Get all the loaded URLs.
    string getStaticIDKey()
    any getURLClassLoader()
         Returns the java.
    string getVersion()
         Get the Javaloader Version.
    string getWirebox()
    private boolean isJavaLoaderInScope()
    private any setJavaLoaderInScope(any javaLoader)
         private ********************************************.
    any setStaticIDKey(any staticIDKey)
    any setup(struct moduleSettings)
         Setup class loading.
    any setWirebox(any wirebox)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    staticIDKey

    property any staticIDKey

    ID key saved in server scope to avoid leakage

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

    wirebox

    property any wirebox

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

    Method Detail

    appendPaths

    public any appendPaths(string dirPath, [string filter='*.jar'])

    Appends a directory path of *.jar's,*.classes to the current loaded class loader.

    Parameters:
    dirPath - The directory absolute path to load
    filter - The directory filter

    arrayOfJars

    public array arrayOfJars(string dirPath, [string filter='*.jar'])

    Get an array of jars from a directory location

    Parameters:
    dirPath
    filter

    create

    public any create(string className)

    Retrieves a reference to the java class. To create a instance, you must run init() on this object

    Parameters:
    className

    getJavaLoader

    public any getJavaLoader()

    Get the original java loader object from scope


    getJavaLoaderFromScope

    private any getJavaLoaderFromScope()


    getLoadedURLs

    public array getLoadedURLs()

    Get all the loaded URLs


    getStaticIDKey

    public string getStaticIDKey()


    getURLClassLoader

    public any getURLClassLoader()

    Returns the java.net.URLClassLoader in case you need access to it


    getVersion

    public string getVersion()

    Get the Javaloader Version


    getWirebox

    public string getWirebox()


    isJavaLoaderInScope

    private boolean isJavaLoaderInScope()


    setJavaLoaderInScope

    private any setJavaLoaderInScope(any javaLoader)

    private ********************************************

    Parameters:
    javaLoader

    setStaticIDKey

    public any setStaticIDKey(any staticIDKey)

    Parameters:
    staticIDKey

    setup

    public any setup(struct moduleSettings)

    Setup class loading

    Parameters:
    moduleSettings

    setWirebox

    public any setWirebox(any wirebox)

    Parameters:
    wirebox