wasCSharpSQLite – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * CommandWithDispose.java -- |
||
3 | * |
||
4 | * Interface for Commands that need to know when they are deleted |
||
5 | * from an interpreter. |
||
6 | * |
||
7 | * Copyright (c) 1997 Sun Microsystems, Inc. |
||
8 | * |
||
9 | * See the file "license.terms" for information on usage and |
||
10 | * redistribution of this file, and for a DISCLAIMER OF ALL |
||
11 | * WARRANTIES. |
||
12 | * |
||
13 | * Included in SQLite3 port to C# for use in testharness only; 2008 Noah B Hart |
||
14 | * |
||
15 | * RCS @(#) $Id: CommandWithDispose.java,v 1.2 1999/07/28 03:41:13 mo Exp $ |
||
16 | */ |
||
17 | using System; |
||
18 | namespace tcl.lang |
||
19 | { |
||
20 | |||
21 | /// <summary> This interface is implemented by Commands that need to know when |
||
22 | /// they are deleted from an interpreter. Most commands do not need |
||
23 | /// to know when they are deleted in Java because Java will garbage |
||
24 | /// collect any allocations made by the command. However, sometimes |
||
25 | /// a command may hold onto resources that must be explicitly released. |
||
26 | /// This interface allows those commands to be notified when they are |
||
27 | /// being deleted from the interpreter. |
||
28 | /// </summary> |
||
29 | |||
30 | public interface CommandWithDispose : Command |
||
31 | { |
||
32 | void disposeCmd(); // The disposeCmd method is called when the |
||
33 | // interp is removing the Tcl command. |
||
34 | } |
||
35 | } |