In the Section called Doing java in HTML documents in Chapter 8 we have examined how a java program is executed in an html document using the object ClazzLoader provided by J2S that contains method for configuring the java runtime with javascript, like setting the java classpath, loading classes and invoking java code. Here we will document all relevant functions of that object.
TODO: the index arguments, if true, a file .package will try to be parsed. this file can be used by j2s library autors to configure how a j2s library must be loaded.
TODO
Makes the J2s compiler to ignore (not load) an array of classes. accepts an array of classnames to ignore. Used when we put set some classes as "Abandoned" in the project Java2Script properties page.
Makes the J2s compiler to ignore (not load) an array of classes. accepts an array of classnames to ignore. Used when we put set some classes as "Abandoned" in the project Java2Script properties page.
ClazzLoader.jarClasspath (base + "util/Collections.js", [ "java.util.Collections", "java.util.Collections.CheckedCollection", "java.util.Collections.CheckedList", "java.util.Collections.CheckedListIterator", "java.util.Collections.CheckedMap", ...... ]);