Class CloseableHandler

java.lang.Object
org.jppf.utils.CloseableHandler

public class CloseableHandler extends Object
A helper class to handle close operations throughout a JVM.
Author:
Laurent Cohen
  • Field Details

  • Constructor Details

    • CloseableHandler

      public CloseableHandler()
  • Method Details

    • handleCloseables

      public static void handleCloseables(String name)
      Close() all the closeables.
      Parameters:
      name - the type of closeable to handle.
    • addResetCloseable

      public static void addResetCloseable(String handlerName, Closeable c)
      Add a Closeable to the list of reset closeables.
      Parameters:
      handlerName - the type of closeable to add.
      c - the Closeable object to add.