Introduction to Intercepting Filter Pattern in Java 1. Overview In this tutorial, we’re going to introduce the Intercepting Filter Pattern presentation-tier Core J2EE Pattern. This is the second tutorial in our Pattern Series and a follow-up to the Front Controller Pattern guide which can be found here. Intercepting Filters are… Continue Reading intercepting-filter-pattern-in-java

Introduction to Creational Design Patterns 1. Introduction In software engineering, a Design Pattern describes an established solution to the most commonly encountered problems in software design. It represents the best practices evolved over a long period through trial and error by experienced software developers. Design Patterns gained popularity after the… Continue Reading creational-design-patterns

Using Lombok’s @Builder Annotation 1. Overview Project Lombok’s @Builder is a useful mechanism for using the Builder pattern without writing boilerplate code. We can apply this annotation to a Class or a method. In this brief tutorial, we’ll look at the different use cases for @Builder. 2. Maven Dependencies First, we need to add Project Lombok… Continue Reading lombok-builder

Implementing the Template Method Pattern in Java 1. Overview In this quick tutorial, we’ll see how to leverage the template method pattern – one of the most popular GoF patterns. It makes it easier to implement complex algorithms by encapsulating logic in a single method. 2. Implementation To demonstrate how… Continue Reading java-template-method-pattern

Proxy, Decorator, Adapter and Bridge Patterns   1. Introduction In this article, we’re going to focus on Structural Design Patterns in Java – and discuss what these are and some fundamental differences between some of them. 2. Structural Design Patterns According to the Gang Of Four (GoF), design patterns can… Continue Reading java-structural-design-patterns

Lombok Builder with Custom Setter 1. Introduction Project Lombok is a popular Java library to help reduce the amount of boilerplate code a developer needs to write. In this tutorial, we’ll take a look at how Lombok’s @Builder annotation works and how we can customize it for our specific needs. 2. Maven… Continue Reading lombok-builder-custom-setter

Chain of Responsibility Design Pattern in Java 1. Introduction In this article, we’re going to take a look at a widely used behavioral design pattern: Chain of Responsibility. We can find more design patterns in our previous article. 2. Chain of Responsibility Wikipedia defines Chain of Responsibility as a design… Continue Reading chain-of-responsibility-pattern