|
ColdBox Platform v3.8.0 | ||||
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 | |
---|---|
void |
appendPaths(string dirPath='', [string filter='*.jar'])
Appends a directory path of * |
any |
create(string className)
Retrieves a reference to the java class |
any |
getJavaLoader()
Get the original JavaLoader object |
private any |
getJavaLoaderFromScope()
Get the javaloader from server scope |
array |
getLoadedURLs()
Returns the paths of all the loaded java classes and resources |
string |
getStaticIDKey()
Return the original server id static key |
any |
getURLClassLoader()
Returns the java |
string |
getVersion()
Retrieves the version of the loader you are using |
private boolean |
isJavaLoaderInScope()
Checks if the javaloader has been loaded into server scope |
array |
queryJars(string dirPath, [string filter='*.jar'])
pulls a query of all the jars in the folder passed |
private any |
setJavaLoaderInScope(JavaLoader javaloader)
Set the javaloader in server scope |
void |
setStaticIDKey(string staticIDKey)
override the static server key for this javaloader instance |
any |
setup([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
Setup the URL loader with paths to load and how to treat class loaders |
Methods inherited from class WEB-INF.cftags.component |
---|
None
|
Constructor Detail |
---|
public init(any controller)
controller
- coldbox.system.web.ControllerMethod Detail |
---|
public void appendPaths(string dirPath='', [string filter='*.jar'])
dirPath
- The directory path to queryfilter
- The directory filter to usepublic any create(string className)
className
- The name of the class to createpublic any getJavaLoader()
private any getJavaLoaderFromScope()
public array getLoadedURLs()
public string getStaticIDKey()
public any getURLClassLoader()
public string getVersion()
private boolean isJavaLoaderInScope()
public array queryJars(string dirPath, [string filter='*.jar'])
dirPath
- The directory path to queryfilter
- The directory filter to useprivate any setJavaLoaderInScope(JavaLoader javaloader)
javaloader
- The javaloader instance to scopepublic 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 v3.8.0 | ||||
FRAMES |