This modules relies on Sys::jvm
, Sys::jni_env
and
Sys::create_default_jvm
to get a handle on a JVM. You can adapt the
behavior of the FFI and services in this module by redefing
Sys::create_default_jvm
and supply your own JVM object. You can manage
multiple java thread by switching the current environment in a redef
of Sys::jni_env
, and multiple JVM using Sys::jvm
.
See also, the module jvm
to control the JVM instances and access JNI functions.
You can use it to further customize the behavior of your code.
core :: union_find
union–find algorithm using an efficient disjoint-set data structuregamnit :: camera_control_android
Two fingers camera manipulation, pinch to zoom and slide to scrollapp.nit
on Android using a custom Java entry point
# Supporting services for the FFI with Java and to access Java libraries
#
# This modules relies on `Sys::jvm`, `Sys::jni_env` and
# `Sys::create_default_jvm` to get a handle on a JVM. You can adapt the
# behavior of the FFI and services in this module by redefing
# `Sys::create_default_jvm` and supply your own JVM object. You can manage
# multiple java thread by switching the current environment in a redef
# of `Sys::jni_env`, and multiple JVM using `Sys::jvm`.
#
# See also, the module `jvm` to control the JVM instances and access JNI functions.
# You can use it to further customize the behavior of your code.
module java
import ffi_support
import collections
lib/java/java.nit:15,1--29,18