Save This Page
Home » openjdk-7 » sun » java2d » [javadoc | source]
sun.java2d
public class: Disposer [javadoc | source]
java.lang.Object
   sun.java2d.Disposer

All Implemented Interfaces:
    Runnable

This class is used for registering and disposing the native data associated with java objects. The object can register itself by calling one of the addRecord methods and providing either the pointer to the native disposal method or a descendant of the DisposerRecord class with overridden dispose() method. When the object becomes unreachable, the dispose() method of the associated DisposerRecord object will be called.
Field Summary
public static final  int WEAK     
public static final  int PHANTOM     
public static  int refType     
Method from sun.java2d.Disposer Summary:
add,   addObjectRecord,   addRecord,   addRecord,   addReference,   getQueue,   run
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.java2d.Disposer Detail:
 synchronized  void add(Object target,
    DisposerRecord rec) 
    Performs the actual registration of the target object to be disposed.
 public static  void addObjectRecord(Object obj,
    DisposerRecord rec) 
 public static  void addRecord(Object target,
    DisposerRecord rec) 
    Registers the object and the native data for later disposal.
 public static  void addRecord(Object target,
    long disposeMethod,
    long pData) 
    Registers the object and the native data for later disposal.
 public static  void addReference(Reference ref,
    DisposerRecord rec) 
 public static ReferenceQueue getQueue() 
 public  void run()