tcl.lang
Interface CommandWithDispose

All Superinterfaces:
Command
All Known Implementing Classes:
InterpAliasCmd, InterpSlaveCmd, Methods.ExecMethod, Methods.ExecProc, Procedure, ReflectObject

public interface CommandWithDispose
extends Command

This interface is implemented by Commands that need to know when they are deleted from an interpreter. Most commands do not need to know when they are deleted in Java because Java will garbage collect any allocations made by the command. However, sometimes a command may hold onto resources that must be explicitly released. This interface allows those commands to be notified when they are being deleted from the interpreter.


Method Summary
 void disposeCmd()
          Called when the interpreter is removing the Tcl command
 
Methods inherited from interface tcl.lang.Command
cmdProc
 

Method Detail

disposeCmd

void disposeCmd()
Called when the interpreter is removing the Tcl command



Copyright © 2015. All rights reserved.