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
|
615
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'System-Support'
|
375
|
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 |
documentation
|
|
37 |
"
|
|
38 |
HandleRegistries are like Registries, in that they watch for the death of
|
|
39 |
a registered object. However, they send a self-change notification, passing the registered
|
|
40 |
handle as argument, instead of creating a shallow copy and letting it do the finalization.
|
|
41 |
Use Registry for objects which know themself how to clean up;
|
|
42 |
use HandleRegistry, if someone else does the cleanup.
|
|
43 |
"
|
|
44 |
! !
|
|
45 |
|
|
46 |
!HandleRegistry methodsFor:'dispose handling'!
|
|
47 |
|
|
48 |
informDispose:someHandle
|
|
49 |
self changed:#finalize with:someHandle from:self
|
|
50 |
! !
|
|
51 |
|
|
52 |
!HandleRegistry methodsFor:'redefined to block'!
|
|
53 |
|
615
|
54 |
register:anObject
|
|
55 |
"not useful for HandleRegistry - use #register:as:"
|
375
|
56 |
|
|
57 |
self shouldNotImplement
|
|
58 |
!
|
|
59 |
|
615
|
60 |
registerChange:anObject
|
|
61 |
"not useful for HandleRegistry"
|
375
|
62 |
|
|
63 |
self shouldNotImplement
|
|
64 |
! !
|
615
|
65 |
|
630
|
66 |
!HandleRegistry class methodsFor:'documentation'!
|
|
67 |
|
|
68 |
version
|
|
69 |
^ '$Header: /cvs/stx/stx/libbasic/Attic/HRegistry.st,v 1.6 1995-11-23 17:10:40 cg Exp $'
|
|
70 |
! !
|