java.lang
Class ClassLoader.NativeLibrary

java.lang.Object
  |
  +--java.lang.ClassLoader.NativeLibrary

static class ClassLoader.NativeLibrary
extends Object

The inner class NativeLibrary denotes a loaded native library instance. Every classloader contains a vector of loaded native libraries in the private field nativeLibraries. The native libraries loaded into the system are entered into the systemNativeLibraries vector. Every native library reuqires a particular version of JNI. This is denoted by the private jniVersion field. This field is set by the VM when it loads the library, and used by the VM to pass the correct version of JNI to the native methods.

Since:
JDK1.2
See Also:
ClassLoader

Field Summary
private  Class fromClass
           
(package private)  long handle
           
private  int jniVersion
           
(package private)  String name
           
 
Constructor Summary
ClassLoader.NativeLibrary(Class fromClass, String name)
           
 
Method Summary
protected  void finalize()
           
(package private)  long find(String name)
           
(package private) static Class getFromClass()
           
(package private)  void load(String name)
           
(package private)  void unload()
           
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

handle

long handle

jniVersion

private int jniVersion

fromClass

private Class fromClass

name

String name
Constructor Detail

ClassLoader.NativeLibrary

public ClassLoader.NativeLibrary(Class fromClass,
                                 String name)
Method Detail

load

void load(String name)

find

long find(String name)

unload

void unload()

finalize

protected void finalize()
Overrides:
finalize in class Object

getFromClass

static Class getFromClass()