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