sanjaymadnani.wordpress.com
refer: java singleton design pattern blog.