Tag Archives: sychronized

Singleton pattern

Sometimes we need only one instance of a class in whole system, and “Singleton” was born.

Singleton is the simplest pattern in the design pattern world. It invokes only one class which is responsible to instantite itself, to make sure no more than one instance of it was created. This class is used for centralized management of resources and provides global access point to itself. Continue reading