proxy design pattern overview

Proxy Design Pattern with examples

Introduction to Proxy Pattern Proxy design pattern falls under the structural design pattern category and it is one of the most frequently used pattern in software development. This pattern helps to control the usage and access behaviours of connected resources. A separate object called ‘proxy’ helps to build the connection between the client and the […]

Read More

What is Visitor Design Pattern?

Visitor is a behavioural type of design pattern. Although this is not a very popular design pattern due to its narrow applicability, it can be carefully used to resolve complex behavioural situations. This pattern is useful when an object structure contains different kinds of operations to use in different situations. Elements of an object structure […]

Read More

command pattern class diagram

Command Pattern with Java examples

This pattern falls under the behavioral design pattern category. In this pattern, the information inside one request is mapped to a single object and then that object is used as required. It encapsulates a whole request as an object called ‘Command’. The ‘Command’ can be identified as a materialized method call. That object often contains […]

Read More

Bridge Design Pattern

What is Bridge Design Pattern?

Bridge Design Pattern falls under the structural design pattern category. This pattern focuses on a limitation in the concept of abstraction. In the context of Java, we use inheritance to develop the concept of abstraction. Several implementation deviations support to achieve the inheritance. However, this permanently binds the implementation to the abstraction limiting the flexibility. […]

Read More

Adapter Pattern Example

What is Adapter Design Pattern?

Adapter design pattern falls under the category of the structural design pattern. The main intention of the Adapter pattern is to make two incompatible interfaces compatible so that two different systems can inter-communicate. Two different systems have completely different interfaces to communicate with outside. The underlying classes or objects will not change but there is […]

Read More

What is Facade Design Pattern?

Introduction to Facade Design Pattern Facade design pattern is another pattern from structural design pattern category. This supports loose coupling by hiding the complex details via a simple interface. This pattern introduces a component called facade, which is a simplified interface component. This facade simplifies the responsibilities of the client by standing between the complex […]

Read More

Decorator pattern Design Pattern

What is Decorator Design Pattern?

Decorator design pattern falls under the structural design pattern category. As the name implies, decorator pattern provides some kind of decorational effect on the original object. That is, the pattern provides the ability to add new features and behaviors to a base object without altering its existing structure. That is there will be additional features […]

Read More

Prototype Design Pattern

What is Prototype Design Pattern?

Introduction The prototype design pattern falls under the creational design pattern category. It uses the object re-use principle to gain the benefit of solving the problem. This pattern is most appropriate when object creations are costly and time-consuming. The already created clone helps to save the cost and the construction time of the required object. […]

Read More