author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:28:41 +0100 | |
changeset 530 | 07d0bce293c9 |
parent 384 | cc3d110ea879 |
child 615 | e9d0e782206d |
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 |
||
13 |
Registry subclass:#HandleRegistry |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'System-Support' |
|
18 |
! |
|
19 |
||
20 |
!HandleRegistry class methodsFor:'documentation'! |
|
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
version |
|
530
07d0bce293c9
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
384
diff
changeset
|
37 |
^ '$Header: /cvs/stx/stx/libbasic/HandleRegistry.st,v 1.4 1995-11-11 15:23:25 cg Exp $' |
375 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
HandleRegistries are like Registries, in that they watch for the death of |
|
43 |
a registered object. However, they send a self-change notification, passing the registered |
|
44 |
handle as argument, instead of creating a shallow copy and letting it do the finalization. |
|
45 |
Use Registry for objects which know themself how to clean up; |
|
46 |
use HandleRegistry, if someone else does the cleanup. |
|
47 |
" |
|
48 |
! ! |
|
49 |
||
50 |
!HandleRegistry methodsFor:'dispose handling'! |
|
51 |
||
52 |
informDispose:someHandle |
|
53 |
self changed:#finalize with:someHandle from:self |
|
54 |
! ! |
|
55 |
||
56 |
!HandleRegistry methodsFor:'redefined to block'! |
|
57 |
||
58 |
registerChange:anObject |
|
59 |
"not useful for HandleRegistry" |
|
60 |
||
61 |
self shouldNotImplement |
|
62 |
! |
|
63 |
||
64 |
register:anObject |
|
65 |
"not useful for HandleRegistry - use #register:as:" |
|
66 |
||
67 |
self shouldNotImplement |
|
68 |
! ! |