home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java 1.2 How-To
/
JavaHowTo.iso
/
3rdParty
/
Bluette
/
Plastic
/
patterns
/
Singleton.pat
< prev
Wrap
Text File
|
1997-07-13
|
2KB
|
176 lines
<integer>
4
<storable>
<string>
TJavaClass
<integer>
97
<integer>
97
<integer>
227
<integer>
212
<string>
Singleton
<integer>
2
<storable>
<string>
TJavaAttribute
<string>
uniqueInstance
<string>
<string>
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<storable>
<string>
TJavaAttribute
<string>
singletonData
<string>
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<integer>
3
<storable>
<string>
TJavaMethod
<string>
Instance
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
1
<string>
// return uniqueInstance;
<storable>
<string>
TJavaMethod
<string>
SingletonOperation
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
0
<storable>
<string>
TJavaMethod
<string>
GetSingletonData
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<integer>
0
<storable>
<string>
TText
<integer>
97
<integer>
72
<integer>
247
<integer>
87
<string>
Design Pattern : Singleton
<storable>
<string>
TComment
<integer>
277
<integer>
97
<integer>
532
<integer>
137
<integer>
2
<string>
Ensure a class only has one instance,
<string>
and provide a global point of access to it.
<storable>
<string>
TCommentLink
<integer>
0
<integer>
2
<integer>
2
<integer>
227
<integer>
107
<integer>
277
<integer>
107