Digging into the Visitor Pattern.

Fabian Büttner, Oliver Radfelder, Arne Lindow, Martin Gogolla · 2004

... existing software in a nonintrusive way, and which simulates covariant overriding of visit methods. It allows to express polymorphic operations through visitor classes in a more natural way than the original VISITOR pattern. Our solution DYNAMIC DISPATCHER can be applied without touching existing domain classes. Therefore, it is especially useful to extend frameworks and libraries. We have implemented DYNAMIC DISPATCHER as a small framework in Java and conducted performance measurements which show that the overhead should be acceptable in many real world scenarios.

Read the paper · More papers on PaperTik