Class TempFileContext

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class TempFileContext
    extends Object
    implements Closeable
    Provides a central temporary file manager for use by any number of projects. The temporary files are optionally deleted on shutdown using shutdown hooks. The shutdown-registered temporary files are also immediately deleted when the last instance is closed.

    Thread-safe with fine-grained locking.