Class DeleteOnShutdown

java.lang.Object
dev.metaschema.core.util.DeleteOnShutdown

public final class DeleteOnShutdown extends Object
Used to perform cleanup on shutdown.
  • Method Details

    • register

      public static void register(Path path)
      Register a new path to be deleted on JVM termination.

      If the path is a directory, then its contents will also be deleted.

      Parameters:
      path - the path to delete