samedi 16 avril 2016

How can I make a visitor pattern configurable in runtime?

Well, as you know, the design pattern Visitor has a "problem" similar to Abstract Factory problem: the more visitable classes I made, the more specific "visit" methods must create.

In the case of an abstract factory I made a solution using prototype of a product to "configure" the factory, you can see it here:

http://ift.tt/1Qf4ppf

I wish to know if it's possible to "configure" a visitor in runtime and, if so, which will be the possible solutions.

Thanks.

Aucun commentaire:

Enregistrer un commentaire