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:
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