Changes

Jump to navigation Jump to search
5 bytes removed ,  08:36, 8 April 2016
==Java==
Suitable JAR archives 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 with the {{Code|.jar}} file suffix, and the original file will be renamed and copied to that path into the repository.
The public functions of this class can then be addressed from XQuery, using the class or file path as namespace URI, or an alternative writing that can be [[#URI Rewriting|rewritten]] to the module file path. Moreover, a class may extend the {{Code|QueryModule}} class to get access to the current query context and to be enriched by some helpful annotations (please consult [[Java_Bindings#Context-Awareness|Context Awareness of Java Bindings]] for more information).
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu