lucee.Componentcontentbox.modules.contentbox-deps.modules.cbmarkdown.modules.cbjavaloader.models.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.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
moduleSettings
Module Settings.
|
true
|
false
|
|
any
|
staticIDKey
ID key saved in server scope to avoid leakage.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any coldbox)
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
|
getModuleSettings()
|
string
|
getStaticIDKey()
|
any
|
getURLClassLoader()
Returns the java. |
string
|
getVersion()
Get the Javaloader Version. |
private boolean
|
isJavaLoaderInScope()
|
private any
|
setJavaLoaderInScope(any javaLoader)
private ********************************************. |
any
|
setModuleSettings(any moduleSettings)
|
any
|
setStaticIDKey(any staticIDKey)
|
any
|
setup()
Setup class loading. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
coldbox
Property Detail |
---|
Module Settings
access
- publicrequired
- falsereturntype
- anyinject
- coldbox:moduleSettings:cbjavaloaderserializable
- trueID key saved in server scope to avoid leakage
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Appends a directory path of *.jar's,*.classes to the current loaded class loader.
dirPath
- The directory absolute path to loadfilter
- The directory filterGet an array of jars from a directory location
dirPath
filter
Retrieves a reference to the java class. To create a instance, you must run init() on this object
className
Get the original java loader object from scope
Get all the loaded URLs
Returns the java.net.URLClassLoader in case you need access to it
Get the Javaloader Version
private ********************************************
javaLoader
moduleSettings
staticIDKey
Setup class loading