Merge: doc: fixed some typos and other misc. corrections
[nit.git] / lib / java / java.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # Supporting services for the FFI with Java and to access Java libraries
16 #
17 # This modules relies on `Sys::jvm`, `Sys::jni_env` and
18 # `Sys::create_default_jvm` to get a handle on a JVM. You can adapt the
19 # behavior of the FFI and services in this module by redefing
20 # `Sys::create_default_jvm` and supply your own JVM object. You can manage
21 # multiple java thread by switching the current environment in a redef
22 # of `Sys::jni_env`, and multiple JVM using `Sys::jvm`.
23 #
24 # See also, the module `jvm` to control the JVM instances and access JNI functions.
25 # You can use it to further customize the behavior of your code.
26 module java
27
28 import ffi_support
29 import collections