Versions Compared

Key

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

...

Literally 100% of the Singleton locking we're talking about is taken from this interface. It's safe to imagine that under the covers the Singleton Container is creating has an instance of ReadWriteLock which it will use uses to enforce the locking for all the Singleton bean's methods. Essentially:

...