Without going into a discussion whether Singleton is an anti-pattern in itself, I'm looking for a good use case for Immutable Singleton.
The only instance of such class will have a constant value once initialized, since we can neither change its visible state nor create an another copy.
What is a real-life use of such constructs?
Aucun commentaire:
Enregistrer un commentaire