Package com.day.util
Interface ExecutionContext
-
public interface ExecutionContext
AnExecutionContext
contains temporary objects. When the context is destroyed, its attached temporary objects are destroyed. Audience dev- Since:
- antbear
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTempFile(java.io.File file)
Add a temporary file to thisExecutionContext
.void
registerObject(Finalizer object)
Add a generic temporary object that implements theFinalizer
interface.
-
-
-
Method Detail
-
registerObject
void registerObject(Finalizer object)
Add a generic temporary object that implements theFinalizer
interface. ItsFinalizer.doFinalize()
method will be called when theExecutionContext
is destroyed.- Parameters:
object
- the object to register
-
addTempFile
void addTempFile(java.io.File file)
Add a temporary file to thisExecutionContext
. The temporary file will be deleted when the context is destroyed.- Parameters:
file
- file to remember
-
-