Package com.helger.base.cleanup
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
-
Field Summary
Fields inherited from interface com.helger.base.cleanup.ICleanUpRegistry
PRIORITY_DEFAULT, PRIORITY_MAX, PRIORITY_MIN -
Method Summary
Modifier and TypeMethodDescriptionstatic CleanUpRegistrystatic booleanvoidvoidregisterCleanup(int nPriority, Runnable aRunnable) Register a cleanup action.void
-
Method Details
-
isInstantiated
public static boolean isInstantiated() -
getInstance
-
reinitialize
public void reinitialize() -
registerCleanup
Description copied from interface:ICleanUpRegistryRegister a cleanup action.- Specified by:
registerCleanupin interfaceICleanUpRegistry- Parameters:
nPriority- Priority - the higher the earlier it is calledaRunnable- The runnable to be executed. May not benull.
-
performCleanUp
public void performCleanUp()
-