...
| Wiki Markup |
|---|
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="1af868f8cbdb1880-24789fab-449e4791-8b6780bb-cd98b2e4239022f1a3b90db3"><ac:parameter ac:name="">CON20-EX1</ac:parameter></ac:structured-macro> *TSM02-EX1:* It is permissible to start a background thread during class initialization provided the thread does not access any fields. For example, the {{ObjectPreserver}} class (based on \[[PatternsGrand 2002|AA. Bibliography#PatternsBibliography#Grand 02]\]) shown below provides a mechanism for storing object references, which prevents an object from being garbage-collected, even if the object is not de-referenced in the future. |
...
| Wiki Markup |
|---|
\[[Bloch 2005b|AA. Bibliography#Bloch 05b]\] 8. "Lazy Initialization" \[[PatternsGrand 2002|AA. Bibliography#PatternsBibliography#Grand 02]\] Chapter 5, Creational Patterns, Singleton |
...