Class Cleaner


  • public final class Cleaner
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Object cleaner  
      private static java.lang.Object cleanerLock  
      private static java.lang.reflect.Method cleanMethod  
      private static java.lang.reflect.Method createMethod  
      private static java.lang.reflect.Method registerMethod  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Cleaner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.Object getCleaner​(java.lang.Object object, java.lang.Runnable cleanProc)  
      static java.lang.Runnable register​(java.lang.Object object, java.lang.Runnable cleanProc)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • createMethod

        private static final java.lang.reflect.Method createMethod
      • cleanMethod

        private static final java.lang.reflect.Method cleanMethod
      • registerMethod

        private static final java.lang.reflect.Method registerMethod
      • cleanerLock

        private static final java.lang.Object cleanerLock
      • cleaner

        private static volatile java.lang.Object cleaner
    • Constructor Detail

      • Cleaner

        private Cleaner()
    • Method Detail

      • getCleaner

        private static java.lang.Object getCleaner​(java.lang.Object object,
                                                   java.lang.Runnable cleanProc)
      • register

        public static java.lang.Runnable register​(java.lang.Object object,
                                                  java.lang.Runnable cleanProc)