vendredi 27 novembre 2015

Factory of factories?

I have concrete factory classes which implement MyFactory interface. I want to get concrete factory objects based on parameter. How to do this?

One way is to create factory of factories[FoF], and FoF would be parameterized factory.

Is there any more elegant way to do this?

This is purely intellectual exercise, I am not facing any problem in my project.

Aucun commentaire:

Enregistrer un commentaire