java.lang.ref
Class Finalizer

java.lang.Object
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.FinalReference
          extended byjava.lang.ref.Finalizer

final class Finalizer
extends FinalReference


Nested Class Summary
private static class Finalizer.FinalizerThread
           
 
Nested classes inherited from class java.lang.ref.Reference
 
Field Summary
private static Object lock
           
private  Finalizer next
           
private  Finalizer prev
           
private static ReferenceQueue queue
           
private static Finalizer unfinalized
           
 
Fields inherited from class java.lang.ref.Reference
 
Constructor Summary
private Finalizer(Object finalizee)
           
 
Method Summary
private  void add()
           
private static void forkSecondaryFinalizer(Runnable proc)
           
private  boolean hasBeenFinalized()
           
(package private) static void invokeFinalizeMethod(Object o)
           
(package private) static void register(Object finalizee)
           
private  void remove()
           
(package private) static void runAllFinalizers()
           
(package private) static void runFinalization()
           
private  void runFinalizer()
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private static ReferenceQueue queue

unfinalized

private static Finalizer unfinalized

lock

private static Object lock

next

private Finalizer next

prev

private Finalizer prev
Constructor Detail

Finalizer

private Finalizer(Object finalizee)
Method Detail

invokeFinalizeMethod

static void invokeFinalizeMethod(Object o)
                          throws Throwable
Throws:
Throwable

hasBeenFinalized

private boolean hasBeenFinalized()

add

private void add()

remove

private void remove()

register

static void register(Object finalizee)

runFinalizer

private void runFinalizer()

forkSecondaryFinalizer

private static void forkSecondaryFinalizer(Runnable proc)

runFinalization

static void runFinalization()

runAllFinalizers

static void runAllFinalizers()