Articles on Design Patterns


On the Parameter Constants pattern -Combine nested interfaces and class constants for flexible design and easy access to constants

"When is a Singleton not a Singleton?" helps you avoid the oxymoronic- multiple Singleton instance. Contrary to what the Singleton design pattern aims to enforce, the occurrence of more than one instance of a Singleton class is sometimes caused by the quirks of special class loaders, multithreading, distributed systems, and object serialization

GUIDs without Singletons and Databases

CMP Primary Key Sequence Generated By Bean Self Cache 

The Liar View Bug Pattern - The separation of the model from the view in an MVC architecture presents a challenge to automated GUI testing -- a state change in the model is often not reflected appropriately in the view. Find out how to expose this liar before it caauses you more heartache.

Pattern: Map Logical Entities to more than one EnterpriseBean