Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amir-shiati/singleton-demonstration-java

Singleton design pattern demonstration in java.
https://github.com/amir-shiati/singleton-demonstration-java

Last synced: 6 days ago
JSON representation

Singleton design pattern demonstration in java.

Awesome Lists containing this project

README

        

# Singleton

**Singleton** is a creational design pattern that lets you ensure that a class has only one instance, while providing a global access point to this instance.

### Types of singletons demonstrated in this example:

- EagerInitializedSingleton
- EnumSingleton
- LazyInitializedSingleton
- StaticBlockSingleton
- ThreadSafeSingleton