Package com.day.util

Interface ExecutionContext


  • public interface ExecutionContext
    An ExecutionContext contains temporary objects. When the context is destroyed, its attached temporary objects are destroyed. Audience dev
    Since:
    antbear
    • Method Detail

      • registerObject

        void registerObject​(Finalizer object)
        Add a generic temporary object that implements the Finalizer interface. Its Finalizer.doFinalize() method will be called when the ExecutionContext is destroyed.
        Parameters:
        object - the object to register
      • addTempFile

        void addTempFile​(java.io.File file)
        Add a temporary file to this ExecutionContext. The temporary file will be deleted when the context is destroyed.
        Parameters:
        file - file to remember