Created
April 24, 2016 20:38
-
-
Save nikkatsa/ccac1b294937800fc54040b155f5fcb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SingletonClass { | |
private static final com.nikoskatsanos.nkjutils.yalf.YalfLogger log = com.nikoskatsanos.nkjutils.yalf.YalfLogger.getLogger(SingletonClass.class); | |
private SingletonClass() { | |
log.info("Initializing %s", this.getClass().getName()); | |
} | |
public static final SingletonClass getInstance() { | |
return SingletonClassHelper.INSTANCE; | |
} | |
private static class SingletonClassHelper { | |
private static final SingletonClass INSTANCE = new SingletonClass(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment