Class FinalizerService


  • public class FinalizerService
    extends Object
    • Field Detail

      • log

        public static final org.apache.commons.logging.Log log
    • Method Detail

      • addFinalizer

        public void addFinalizer​(Object referent,
                                 Runnable cleanup)
        When referent is freed by the garbage collector, run cleanup.

        Note: cleanup must not contain a reference to the referent object.