Immutable Objects in a class hierarchy

I have a project that has data objects that are implemented as beans. These classes form the base of a whole class hierarchy. Reading Joshua Bloch’s book „Effective Java“ I recognised this as a bad architecture. I decided to combine different items from the book: immutable object, builders and components instead of class hierarchy.
„Immutable Objects in a class hierarchy“ weiterlesen

Combining Immutable Singleton and Builder

It is a good idea to use immutable objects where possible to reduce the amount of time you loose debugging because some value is not as expected and trying to find out where it has changed. It is also sensible to use a builder for some class with many members to be initialized at constructing time. It may even make sense to implement your object as a singleton. All these techniques are promoted by Joshua Blochs Effective Java. But can you combine these three items to work together?
„Combining Immutable Singleton and Builder“ weiterlesen

Effective Eclipse Plug-ins

The architecture of Eclipse and the structural concept of the underling OSGi framework are sometimes hard to combine with „effective Java“ programming as Joshua Bloch propagates it in his book „Effective Java„.
When you want to extend the functionality you must make certain compromises designing your API. This article describes how you can implement functionality with exposing a minimal API.
„Effective Eclipse Plug-ins“ weiterlesen