author | Stefan Vogel <sv@exept.de> |
Fri, 05 Jun 2015 18:10:58 +0200 | |
changeset 18439 | b9ef8e4966e4 |
parent 6442 | 541e6035e979 |
child 17711 | 39faaaf888b4 |
child 20042 | 55d13d6f3ca0 |
permissions | -rw-r--r-- |
375 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
6442
541e6035e979
Nobody implements #changed:with:from:
Stefan Vogel <sv@exept.de>
parents:
1961
diff
changeset
|
13 |
"{ Package: 'stx:libbasic' }" |
541e6035e979
Nobody implements #changed:with:from:
Stefan Vogel <sv@exept.de>
parents:
1961
diff
changeset
|
14 |
|
375 | 15 |
Registry subclass:#HandleRegistry |
1286 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'System-Support' |
|
375 | 20 |
! |
21 |
||
22 |
!HandleRegistry class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
HandleRegistries are like Registries, in that they watch for the death of |
|
41 |
a registered object. However, they send a self-change notification, passing the registered |
|
42 |
handle as argument, instead of creating a shallow copy and letting it do the finalization. |
|
43 |
Use Registry for objects which know themself how to clean up; |
|
44 |
use HandleRegistry, if someone else does the cleanup. |
|
1286 | 45 |
|
46 |
[author:] |
|
47 |
Claus Gittinger |
|
375 | 48 |
" |
49 |
! ! |
|
50 |
||
51 |
!HandleRegistry methodsFor:'dispose handling'! |
|
52 |
||
53 |
informDispose:someHandle |
|
1961 | 54 |
"an element was disposed; let my dependents know about this" |
55 |
||
6442
541e6035e979
Nobody implements #changed:with:from:
Stefan Vogel <sv@exept.de>
parents:
1961
diff
changeset
|
56 |
self changed:#finalize with:someHandle |
375 | 57 |
! ! |
58 |
||
59 |
!HandleRegistry methodsFor:'redefined to block'! |
|
60 |
||
615 | 61 |
register:anObject |
62 |
"not useful for HandleRegistry - use #register:as:" |
|
375 | 63 |
|
64 |
self shouldNotImplement |
|
65 |
! |
|
66 |
||
615 | 67 |
registerChange:anObject |
68 |
"not useful for HandleRegistry" |
|
375 | 69 |
|
70 |
self shouldNotImplement |
|
71 |
! ! |
|
615 | 72 |
|
630 | 73 |
!HandleRegistry class methodsFor:'documentation'! |
74 |
||
75 |
version |
|
6442
541e6035e979
Nobody implements #changed:with:from:
Stefan Vogel <sv@exept.de>
parents:
1961
diff
changeset
|
76 |
^ '$Header: /cvs/stx/stx/libbasic/HandleRegistry.st,v 1.9 2002-03-04 19:15:09 stefan Exp $' |
630 | 77 |
! ! |