java.lang.Object | |
↳ | sun.java2d.Disposer |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PHANTOM | ||||||||||
int | WEAK |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
refType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers the object and the native data for later disposal.
| |||||||||||
Registers the object and the native data for later disposal.
| |||||||||||
When an object implementing interface
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Registers the object and the native data for later disposal.
target | Object to be registered |
---|---|
rec | the associated DisposerRecord object |
Registers the object and the native data for later disposal.
target | Object to be registered |
---|---|
disposeMethod | pointer to the native disposal method |
pData | pointer to the data to be passed to the native disposal method |
When an object implementing interface Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.