Internal implementation of the different JNI-specific objects.