mardi 14 mars 2017

Design Patterns - What's the difference between Registry, Repository and Object Pool patterns

It's quite a bit confused to me when reading articles about Registry, Repository and Object Pool patterns. They are all the collection of objects that can be used later.

What's the main difference between them?

Also, I need a way to store a list of object instances of a class, so I can refer to them later (get and call some methods). Which pattern is the best for this job?

Thanks

Aucun commentaire:

Enregistrer un commentaire