|
Loads External Java Classes, while providing access to ColdFusion classes.
You can create a setting in your configuration file that the JavaLoader plugin will use to load java classes for you (javaloader_libpath).
settings = {
javaloader_libpath = "includes/java"
};
This way once the application loads, all the jar files located in that path will be class loaded for you.
override the static server key for this javaloader instance.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| staticIDKey | string | Yes | --- |
Retrieves the version of the loader you are using
Retrieves a reference to the java class. To create a instance, you must run init() on this object
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| className | string | Yes | --- | The name of the class to create |
pulls a query of all the jars in the folder passed
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| dirPath | string | Yes | The directory path to query | |
| filter | string | No |
|
The directory filter to use |
Return the original server id static key
Returns the java.net.URLClassLoader in case you need access to it
Returns the paths of all the loaded java classes and resources.
Appends a directory path of *.jar's,*.classes to the current loaded class loader.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| dirPath | string | Yes | The directory path to query | |
| filter | string | No |
|
The directory filter to use |
Setup the URL loader with paths to load and how to treat class loaders
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| loadPaths | array | No | [runtime expression] | An array of directories of classes, or paths to .jar files to load |
| loadColdFusionClassPath | boolean | No | false | Loads the ColdFusion libraries |
| parentClassLoader | any | No | (Expert use only) The parent java.lang.ClassLoader to set when creating the URLClassLoader |