Design patterns are solutions to known problems. The pattern represents an abstracted solution to a commonly experienced problem. As the solution is abstracted it is language [...]
This and subsequent posts are a write up of my Java EE revisits design patterns talk at jDay Sweden 2016. The slides to the presentation are viewable here: Java EE Revisits [...]
The Beginning Where did they come from? Did they just appear overnight? In fact, design patterns have a long history starting way before computing. But it wasn’t really [...]
OK let’s have a look at our first pattern. The singleton pattern is one of the most well-known design patterns and is used extensively by frameworks such as Spring, pool [...]
The factory pattern is a creational design pattern whose intent is to provide an interface for creating families of related or dependent objects without specifying their [...]
The simple definition is that it hides the complex logic and provides an interface to the client. Sounds familiar? This is nothing much more than the core part of [...]
The decorator pattern is one of the GoF Structural Pattern and dynamically adds logic to an object. Instead of inheritance, the decorator adds functionality at run time. [...]
A little bit difficult to understand why it is needed in the first place and it goes down to the basic fundamental requirement of OO systems which is to pass a message from [...]
The factory pattern is a creational design pattern whose intent is to provide an interface for creating families of related or dependent objects without specifying their [...]
The Java EE programming model has been simplified substantially since J2EE. Annotations have replaced the XML description files, convention over configuration have replaced [...]