Plugins:JavaLoader

<< Back to Dashboard

Contents

Exploring the JavaLoader Plugin

Overview

Loads External Java Classes, while providing access to ColdFusion classes

setStaticIDKey

override the static server key for this javaloader instance.

Returns

  • This function returns void

Arguments

Key Type Required Default Description
staticIDKey string Yes ---

Examples

getVersion

Retrieves the version of the loader you are using

Returns

  • This function returns string

Examples

create

Retrieves a reference to the java class. To create a instance, you must run init() on this object

Returns

  • This function returns any

Arguments

Key Type Required Default Description
className string Yes --- The name of the class to create

Examples

queryJars

pulls a query of all the jars in the folder passed

Returns

  • This function returns array

Arguments

Key Type Required Default Description
dirPath string Yes The directory path to query
filter string No
  • .jar
The directory filter to use

Examples

getStaticIDKey

Return the original server id static key

Returns

  • This function returns string

Examples

getURLClassLoader

Returns the java.net.URLClassLoader in case you need access to it

Returns

  • This function returns any

Examples

getLoadedURLs

Returns the paths of all the loaded java classes and resources.

Returns

  • This function returns array

Examples

appendPaths

Appends a directory path of *.jar's,*.classes to the current loaded class loader.

Returns

  • This function returns void

Arguments

Key Type Required Default Description
dirPath string Yes The directory path to query
filter string No
  • .jar
The directory filter to use

Examples

setup

Setup the URL loader with paths to load and how to treat class loaders

Returns

  • This function returns any

Arguments

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

Examples

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word

comments Comments (0)


ColdBox Book

book