|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.frameworkSupertype
coldbox.system.plugin
coldbox.system.plugins.JavaLoader
public class JavaLoader
Loads External Java Classes, while providing access to ColdFusion classes
Constructor Summary | |
---|---|
init(any controller)
Constructor |
Method Summary | |
---|---|
any |
create(string className)
Retrieves a reference to the java class. To create a instance, you must run init() on this object |
private any |
getJavaLoaderFromScope()
Get the javaloader from server scope |
any |
getURLClassLoader()
Returns the java.net.URLClassLoader in case you need access to it |
string |
getVersion()
Retrieves the version of the loader you are using |
string |
getstaticIDKey()
Return the original server id static key |
private boolean |
isJavaLoaderInScope()
Checks if the javaloader has been loaded into server scope |
private any |
setJavaLoaderInScope(coldbox.system.extras.javaloader.javaLoader javaloader)
Set the javaloader in server scope |
private void |
setstaticIDKey(string staticIDKey)
|
any |
setup([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
setup the loader |
Methods inherited from class coldbox.system.plugin |
---|
getPluginDescription, getPluginName, getPluginVersion, getpluginPath, setPluginDescription, setPluginName, setPluginVersion
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init(any controller)
Method Detail |
---|
public any create(string className)
className
- The name of the class to createprivate any getJavaLoaderFromScope()
public any getURLClassLoader()
public string getVersion()
public string getstaticIDKey()
private boolean isJavaLoaderInScope()
private any setJavaLoaderInScope(coldbox.system.extras.javaloader.javaLoader javaloader)
javaloader
- The javaloader instance to scopeprivate void setstaticIDKey(string staticIDKey)
staticIDKey
public any setup([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
loadPaths
- An array of directories of classes, or paths to .jar files to loadloadColdFusionClassPath
- Loads the ColdFusion librariesparentClassLoader
- (Expert use only) The parent java.lang.ClassLoader to set when creating the URLClassLoader
|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |