Design pattern Series

Home/Tag: Design pattern Series

Bridge Design Pattern in Java

Introduction The bridge design pattern in Java works on the concept of decoupling the abstraction from its implementation to make both independents. In other words, it separates the abstraction from its implementation. This is done by introducing an interface as a Bridge between the Abstraction and the Implementation. The bridge pattern almost behaves like the Adapter Design pattern, where Adapter [...]

By |2020-05-09T15:59:22+00:00March 30th, 2020|Categories: Java™|Tags: |

Adapter Design Pattern in Java

Introduction The adapter pattern is part of a Structural Design pattern. It works on the concept of Bridging between two incompatible interfaces. This helps the project to support the legacy code with the new codes which are incompatible with the legacy code. In simple words, There are some chances that multiple Interfaces are incompatible with each other So Adapter makes [...]

By |2020-05-09T14:22:06+00:00March 30th, 2020|Categories: Java™|Tags: |

Object Pool Design Pattern in Java

Object pool design pattern in Java works on the reusability concept of the object creation. This pattern is most efficient when it is expensive to create objects and can cause memory issues if multiple objects are created. It helps to improve the performance of the application. Object pool design pattern works on the concept of object pooling. In other words, [...]

By |2020-05-09T15:24:00+00:00March 18th, 2020|Categories: Java™|Tags: |

Prototype Design Pattern in Java

The prototype design pattern works on the concept of cloning the object, which helps in the creation of complex objects in a very quick time. In other words, the Prototype copies the content and data of one object into a new unique object rather than creating a whole new object from scratch. In the creational design patterns, the prototype design [...]

By |2020-05-09T15:29:19+00:00February 12th, 2020|Categories: Java™|Tags: |

Builder Design Pattern in Java

Builder Design Pattern solves the problem of constructing complex objects. In simple words, a situation when a class is having complex constructors or multiple numbers of parameters, it really becomes difficult to create objects in the same manner as the parameters are defined. Builder pattern solves the above problem through handling the situation by an object, rather than the multiple [...]

By |2020-05-09T15:34:50+00:00January 29th, 2020|Categories: Java™|Tags: |

Abstract Factory Design Pattern in Java

Abstract Factory Design pattern comes under the creational patterns and it shows many similarities to the Factory Pattern. The abstract factory works as a factory of factories which generates other factories by providing an extra abstraction layer. The generated factory from an abstract factory pattern always generates the object as per the factory design pattern. In other words, We can [...]

By |2020-05-09T15:37:05+00:00January 24th, 2020|Categories: Java™|Tags: , |

Singleton Design Pattern in Java

Singleton works on the concept of one and only one instance of the object, which results in the global control of a resource. In simple words, the Singleton design pattern ensures that only one instance of the class will be created and that instance will have global access within the application. Singleton Design pattern is the most extensively used design [...]

By |2020-05-09T15:26:30+00:00January 18th, 2020|Categories: Java™|Tags: |

Factory Design Pattern in Java

The Factory design pattern is a part of the creational design pattern. It works on the concept of Encapsulation by hiding the object's instantiation logic from the client. The factory Design pattern is the second most used design pattern in the creational patterns category, after the singleton pattern. The factory pattern is just opposite to the concept of the singleton [...]

By |2020-05-09T15:31:58+00:00January 14th, 2020|Categories: Java™|Tags: |

Design patterns in java

Introduction Software Design patterns in java are a custom set of best practices that are reusable in solving common programming issues. They solve the most common design-related problems in software development. The basic idea for creating the Design patterns is creating the relationship between classes and objects in a different way resulting in fast development along with a more flexible, [...]

By |2020-05-09T15:40:52+00:00November 8th, 2019|Categories: Java™|Tags: , |