| java.lang.ref.PhantomReference org.pnuts.lib.Cleaner
Cleaner | public class Cleaner extends PhantomReference (Code) | | This class provides an alternative to Object.finalize() method.
|
create | public static Cleaner create(Object target, Runnable command)(Code) | | Registers a command as the finalizer of the target object.
When the target is ready to be reclaimed, the registered command is executed.
Parameters: target - the target object Parameters: command - the command to be registered A Cleaner object that should be assigned to a member variable of the target object. |
Methods inherited from java.lang.ref.PhantomReference | public T get()(Code)(Java Doc)
|
|
|