Singleton Example of two simple implementations of the Singleton pattern. Basic Singleton and more advanced implementation using Generics.