Changes

Jump to navigation Jump to search
131 bytes added ,  08:43, 8 April 2016
no edit summary
The Java Binding feature is an extensibility mechanism which enables developers
to directly access Java variables and execute code from XQuery. Addressed Java code must either be contained in the Java classpath, or it must be located in the [[Repository]].
 
Please bear in mind that the execution of Java code may cause side effects that conflict with the functional nature of XQuery, or may introduce new security risks to your project.
=Identification=
 
{{Mark|Updated with Version 8.4}}: address Java functions with specific types
==Classes==
</pre>
The advantages of this approach is that imported code is executed faster than instances created at runtime via {{Code|new()}}. A drawback is that no arguments can be passed on to the class constructor. As a consequence, the import only works will fail if the class provides a has at least one constructor with arguments and no argumentsdefault constructor.
=Context-Awareness=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu