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 Summary
Modifier and TypeMethodDescriptionvoidaddTempFile(File file) Add a temporary file to thisExecutionContext.voidregisterObject(Finalizer object) Add a generic temporary object that implements theFinalizerinterface.
-
Method Details
-
registerObject
Add a generic temporary object that implements theFinalizerinterface. ItsFinalizer.doFinalize()method will be called when theExecutionContextis destroyed.- Parameters:
object- the object to register
-
addTempFile
Add a temporary file to thisExecutionContext. The temporary file will be deleted when the context is destroyed.- Parameters:
file- file to remember
-