Top Description Fields Constructors Methods
com.sun.javafx.font

public Class Disposer

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
java.lang.ref.Reference, .ReferenceQueue, .WeakReference, java.util.Hashtable

This class is used for registering and disposing the native data associated with java objects. The object can register itself by calling the addRecord method and providing 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.
See Also
DisposerRecord

Field Summary

Modifier and TypeField and Description
private static Disposer
private static final ReferenceQueue<T>
private static final Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static WeakReference<T>
addRecord(Object
Object to be registered
target
,
DisposerRecord
the associated DisposerRecord object
rec
)

Registers the object and the native data for later disposal.

public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

disposerInstanceback to summary
private static Disposer disposerInstance
queueback to summary
private static final ReferenceQueue<T> queue
recordsback to summary
private static final Hashtable<K, V> records

Constructor Detail

Disposerback to summary
public Disposer()

Method Detail

addRecordback to summary
public static WeakReference<T> addRecord(Object target, DisposerRecord rec)

Registers the object and the native data for later disposal.

Parameters
target:Object

Object to be registered

rec:DisposerRecord

the associated DisposerRecord object

See Also
DisposerRecord
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override