Class CleanUpRegistry

java.lang.Object
com.helger.base.cleanup.CleanUpRegistry
All Implemented Interfaces:
ICleanUpRegistry

@ThreadSafe @Singleton public final class CleanUpRegistry extends Object implements ICleanUpRegistry
This class contains all the cleanup actions which resets library caches etc. to their original state.
Author:
Philip Helger
  • Method Details

    • isInstantiated

      public static boolean isInstantiated()
    • getInstance

      @Nonnull public static CleanUpRegistry getInstance()
    • reinitialize

      public void reinitialize()
    • registerCleanup

      public void registerCleanup(int nPriority, @Nonnull Runnable aRunnable)
      Description copied from interface: ICleanUpRegistry
      Register a cleanup action.
      Specified by:
      registerCleanup in interface ICleanUpRegistry
      Parameters:
      nPriority - Priority - the higher the earlier it is called
      aRunnable - The runnable to be executed. May not be null.
    • performCleanUp

      public void performCleanUp()