Class StatusLogger.InstanceHolder

  • Enclosing class:
    StatusLogger

    private static final class StatusLogger.InstanceHolder
    extends java.lang.Object
    Wrapper for the default instance for lazy initialization.

    The initialization will be performed when the JVM initializes the class. Since InstanceHolder has no other fields or methods, class initialization occurs when the INSTANCE field is first referenced.

    See Also:
    Double-checked locking: Clever, but broken
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private InstanceHolder()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • InstanceHolder

        private InstanceHolder()