Changes

Jump to navigation Jump to search
8 bytes added ,  11:34, 11 February 2017
For general notes in importing Java classes, please read the Java Bindings article on [[Java Bindings#Module_Imports|Module Imports]].
JAR Java archives (JARs) may contain one or more class files. One of them will be chosen as main class, which must be specified in a {{Code|Main-Class}} entry in the manifest file ({{Code|META-INF/MANIFEST.MF}}). This fully qualified Java class name will be rewritten to a file path by replacing the dots with slashes and attaching the {{Code|.jar}} file suffix, and the original file will be renamed and copied to that path into the repository.
If the class will be imported, an instance of it will be created, and its public functions can then be addressed from XQuery. A class may extend the {{Code|QueryModule}} class to get access to the current query context and to be enriched by some helpful annotations (see [[Java_Bindings#Context-Awareness|Context-Awareness]]).
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu