GoF Design Pattern with Java Platform