Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="73fe0727135a6535-fd0ff838-49b44195-92959a72-3cdf7e85b124018f60c033c1"><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

...