ColdBox Platform Version 2.6.3

coldbox.system.plugins
Class JavaLoader

WEB-INF.cftags.component
        extended by coldbox.system.frameworkSupertype
            extended by coldbox.system.plugin
                extended by coldbox.system.plugins.JavaLoader

public class JavaLoader
extends plugin

Loads External Java Classes, while providing access to ColdFusion classes


Constructor Summary
init(any controller)
          Constructor
 
Method Summary
 any create(string className)
          Retrieves a reference to the java class. To create a instance, you must run init() on this object
private any getJavaLoaderFromScope()
          Get the javaloader from server scope
 any getURLClassLoader()
          Returns the java.net.URLClassLoader in case you need access to it
 string getVersion()
          Retrieves the version of the loader you are using
 string getstaticIDKey()
          Return the original server id static key
private boolean isJavaLoaderInScope()
          Checks if the javaloader has been loaded into server scope
private any setJavaLoaderInScope(coldbox.system.extras.javaloader.javaLoader javaloader)
          Set the javaloader in server scope
private void setstaticIDKey(string staticIDKey)
 any setup([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
          setup the loader
 
Methods inherited from class coldbox.system.plugin
getPluginDescription, getPluginName, getPluginVersion, getpluginPath, setPluginDescription, setPluginName, setPluginVersion
 
Methods inherited from class coldbox.system.frameworkSupertype
abort, announceInterception, dump, getColdboxOCM, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getcontroller, getfwLocale, htmlhead, include, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, rethrowit, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setcontroller, settingExists, throw
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any controller)

Method Detail

create

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

Parameters:
className - The name of the class to create

getJavaLoaderFromScope

private any getJavaLoaderFromScope()
Get the javaloader from server scope


getURLClassLoader

public any getURLClassLoader()
Returns the java.net.URLClassLoader in case you need access to it


getVersion

public string getVersion()
Retrieves the version of the loader you are using


getstaticIDKey

public string getstaticIDKey()
Return the original server id static key


isJavaLoaderInScope

private boolean isJavaLoaderInScope()
Checks if the javaloader has been loaded into server scope


setJavaLoaderInScope

private any setJavaLoaderInScope(coldbox.system.extras.javaloader.javaLoader javaloader)
Set the javaloader in server scope

Parameters:
javaloader - The javaloader instance to scope

setstaticIDKey

private void setstaticIDKey(string staticIDKey)

Parameters:
staticIDKey

setup

public any setup([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
setup the loader

Parameters:
loadPaths - An array of directories of classes, or paths to .jar files to load
loadColdFusionClassPath - Loads the ColdFusion libraries
parentClassLoader - (Expert use only) The parent java.lang.ClassLoader to set when creating the URLClassLoader

ColdBox Platform Version 2.6.3