Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-496

A generic implementation of the Lazy initialization pattern

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.concurrent.*
    • None

    Description

      This is a fully functional implementation of the double-check idiom for lazy initialization of an instance field as discussed in Joshua Bloch's "Effective Java".

      If there is interest, this could be the first element of a set of helper classes related to concurrent programming.

      Attachments

        1. LazyInitializer.patch
          9 kB
          Oliver Heger

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oheger Oliver Heger
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: