lundi 17 août 2015

jSingleton should be replaced with single or multiple interfaces. What does this actually mean?

I have come across an article about TDD where author mentions Singleton as an anti-pattern, and in order to avoid this, one solution is that a Singleton should be replaced with single or multiple interfaces. What does this actually mean? An example will be much helpful.

Aucun commentaire:

Enregistrer un commentaire