Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/amir-shiati/singleton-demonstration-java
- Owner: amir-shiati
- Created: 2021-10-04T07:18:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T13:21:09.000Z (about 3 years ago)
- Last Synced: 2023-11-08T18:37:32.899Z (about 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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