com.jniwrapper
Class NativeResourceCollector

java.lang.Object
  |
  +--com.jniwrapper.NativeResourceCollector

public class NativeResourceCollector
extends java.lang.Object

Garbage collection assistant for native resources. Frees resources when their holders are about to be collected. This always happens after all finalization has been run on those classes.


Method Summary
 void addNativeResource(java.lang.Object holder, NativeResource resource)
           
static NativeResourceCollector getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addNativeResource

public void addNativeResource(java.lang.Object holder,
                              NativeResource resource)

getInstance

public static NativeResourceCollector getInstance()