mercredi 10 janvier 2018

"Bi-singleton" pattern?

I know how the singleton pattern works in java, but I'd like to adapt it to make it possible to create 2 instances of this class and not just one. I've been thinking about this, maybe using an instance counter, but nothing satisfying has come out so far.

Thanks,

Hécatte

Aucun commentaire:

Enregistrer un commentaire