Name | Type | Required | Description |
---|---|---|---|
directoryArray | array | true | array of directories to compile |
Components
Component JavaLoader
Loads External Java Classes, while providing access to ColdFusion classesFunctions
calculateJarName
returns the jar file name for a directory array
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.calculateSourceLastModified
returns what the source last modified was
compileSource
compile dynamic source
create
Retrieves a reference to the java class. To create a instance, you must run init() on this object
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
className | string | true | The name of the class to create |
createJavaProxy
create a javaproxy, dependent on CF server settings
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
class | any | true | the java class to create the proxy with |
createJavaProxyCFC
create a javaproxy, dependent on CF server settings
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
class | any | true | the java class to create the proxy with |
createWithSourceCheck
does the create call, but first makes a source check
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
className | string | true | The name of the class to create |
directoryCopy
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
source | string | true | |
destination | string | true | |
nameconflict | any | true |
ensureNetworkClassLoaderOnServerScope
makes sure there is a URL class loader on the server scope that can load me up some networkClassLoader goodness
getClassLoadPaths
getCompileDirectory
getJavaCompiler
getParentClassLoader
getServerURLClassLoader
returns the server URL class loader
getSourceDirectories
getSourceLastModified
getURLClassLoader
Returns the com.compoundtheory.classloader.NetworkClassLoader in case you need access to it
getVersion
Retrieves the version of the loader you are using
hasJavaCompiler
whether this object has a javaCompiler
hasSourceLastModified
whether this object has a sourceLastModified
init
Constructor
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
loadPaths | array | false | An array of directories of classes, or paths to .jar files to load |
loadColdFusionClassPath | boolean | false | Loads the ColdFusion libraries |
parentClassLoader | any | false | (Expert use only) The parent java.lang.ClassLoader to set when creating the URLClassLoader |
sourceDirectories | array | false | Directories that contain Java source code that are to be dynamically compiled |
compileDirectory | string | false | the directory to build the .jar file for dynamic compilation in, defaults to ./tmp |
trustedSource | boolean | false | Whether or not the source is trusted, i.e. it is going to change? Defaults to false, so changes will be recompiled and loaded |
initUseJavaProxyCFC
initialise whether or not to use the JavaProxy CFC instead of the coldfusion java object
isTrustedSource
loadClasses
loads up the classes in the system
queryJars
pulls a query of all the jars in the /resources/lib folder
setClassLoadPaths
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
classLoadPaths | array | true |
setCompileDirectory
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
compileDirectory | string | true |
setJavaCompiler
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
javaCompiler | JavaCompiler | true |
setParentClassLoader
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
parentClassLoader | any | true |
setSourceDirectories
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
sourceDirectories | array | true |
setSourceLastModified
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
sourceLastModified | date | true |
setTrustedSource
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
isTrustedSource | boolean | true |
setURLClassLoader
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
ClassLoader | any | true |
throwException
Throws an Exception
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.Name | Type | Required | Description |
---|---|---|---|
type | string | true | The type of exception |
message | string | true | The message to accompany the exception |
detail | string | false | The detail message for the exception |