Blog Archives

It’s all about dynamic

In previous post I mentioned about the visitor pattern and how to use it in Java. I also use groovy in my projects and there’s a much better way to solve the problem with processing collections. I have found a

Tagged with: ,
Posted in Uncategorized

Visitor pattern in Java

This is a really nice and simple pattern. Imagine having a collection of objects. Let’s have a class Feature with single method String getName(). Of course the class hierarchy grows in time and here come two additional features: BooleanFeature and

Tagged with: ,
Posted in Uncategorized