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