setLoadJavaClassesUsing - cfsimplicity/spreadsheet-cfml GitHub Wiki
For the current spreadsheet library instance, specifies how classes from the supporting java libraries should be loaded.
setLoadJavaClassesUsing( method )
Required arguments
method
string: one of the following:osgi
: Classes will be loaded from the bundledlib-osgi.jar
. The default for Lucee and only supported by Lucee.JavaLoader
: Classes will be loaded from the/lib
folder via JavaLoader. The default for Adobe ColdFusion.dynamicPath
: Classes will be loaded from the/lib
folder by passing the path as an argument toCreateObject()
. Not supported by Adobe ColdFusion.javaSettings
orclassPath
: Classes will be loaded usingCreateObject()
with the assumption that you have made the contents of the/lib
folder available to the engine via your application'sjavaSettings
or by adding them to the class path.
Note
You can also pass in the value via the init()
method.
Example 1
spreadsheet = New spreadsheetCFML.spreadsheet();
spreadsheet.setLoadJavaClassesUsing( "javaSettings" )
init()
method
Example 2: via the spreadsheet = New spreadsheetCFML.spreadsheet( loadJavaClassesUsing="javaSettings" );