ColdBox Platform Version 2.6.3

coldbox.system.extras.javaloader
Class JavaLoader

WEB-INF.cftags.component
        extended by coldbox.system.extras.javaloader.JavaLoader

public class JavaLoader
extends WEB-INF.cftags.component

Loads External Java Classes, while providing access to ColdFusion classes


Constructor Summary
init([array loadPaths='[runtime expression]'], [boolean loadColdFusionClassPath='false'], [any parentClassLoader=''])
          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 createJavaProxy(any class)
          create a javaproxy, dependent on CF server settings
private void ensureNetworkClassLoaderOnServerScope()
          makes sure there is a URL class loader on the server scope that can load me up some networkClassLoader goodness
private any getServerURLClassLoader()
          returns the server URL class loader
 any getURLClassLoader()
          Returns the java.net.URLClassLoader in case you need access to it
private boolean getUseJavaProxyCFC()
 string getVersion()
          Retrieves the version of the loader you are using
 string initUseJavaProxyCFC()
          initialise whether or not to use the JavaProxy CFC instead of the coldfusion java object
private array queryJars()
          pulls a query of all the jars in the /resources/lib folder
private void setURLClassLoader(any ClassLoader)
private void setUseJavaProxyCFC(boolean UseJavaProxyCFC)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

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

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

createJavaProxy

private any createJavaProxy(any class)
create a javaproxy, dependent on CF server settings

Parameters:
class - the java class to create the proxy with

ensureNetworkClassLoaderOnServerScope

private void ensureNetworkClassLoaderOnServerScope()
makes sure there is a URL class loader on the server scope that can load me up some networkClassLoader goodness


getServerURLClassLoader

private any getServerURLClassLoader()
returns the server URL class loader


getURLClassLoader

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


getUseJavaProxyCFC

private boolean getUseJavaProxyCFC()


getVersion

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


initUseJavaProxyCFC

public string initUseJavaProxyCFC()
initialise whether or not to use the JavaProxy CFC instead of the coldfusion java object


queryJars

private array queryJars()
pulls a query of all the jars in the /resources/lib folder


setURLClassLoader

private void setURLClassLoader(any ClassLoader)

Parameters:
ClassLoader

setUseJavaProxyCFC

private void setUseJavaProxyCFC(boolean UseJavaProxyCFC)

Parameters:
UseJavaProxyCFC

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

ColdBox Platform Version 2.6.3