WEB-INF.cftags.component coldbox.system.FrameworkSupertype coldbox.system.Plugin coldbox.system.plugins.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 |
---|
Constructor
controller
- coldbox.system.web.ControllerMethod Detail |
---|
Appends a directory path of *.jar's,*.classes to the current loaded class loader.
dirPath
- The directory path to queryfilter
- The directory filter to useRetrieves a reference to the java class. To create a instance, you must run init() on this object
className
- The name of the class to createGet the original JavaLoader object
Get the javaloader from server scope
Returns the paths of all the loaded java classes and resources.
Return the original server id static key
Returns the java.net.URLClassLoader in case you need access to it
Retrieves the version of the loader you are using
Checks if the javaloader has been loaded into server scope
pulls a query of all the jars in the folder passed
dirPath
- The directory path to queryfilter
- The directory filter to useSet the javaloader in server scope
javaloader
- The javaloader instance to scopeoverride the static server key for this javaloader instance.
staticIDKey
Setup the URL loader with paths to load and how to treat class loaders
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