Design Patterns

Visitor Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Visitor Design Pattern in Java

URL: https://www.progressiverobot.com/visitor-design-pattern-java/ Visitor Design Pattern is one of the behavioral design pattern. Visitor Design Pattern Visitor pattern is used when we have to perform an operation on a group of similar kind of Objects. With the help of visitor pattern, we can move the operational logic from the objects to another class. For example, think […]

Read more
Factory Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Factory Design Pattern in Java

Welcome to the Factory Design Pattern in Java tutorial. Factory Pattern is one of the Creational Design pattern and it's widely used in JDK as well as frameworks like Spring and Struts. Factory Design Pattern ![factory design pattern, factory design pattern in java, factory pattern, factory method pattern, factory pattern example](images/factory-design-pattern-in-java-section-1.png) The factory design pattern […]

Read more
Flyweight Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Flyweight Design Pattern in Java

Today we will look into Flyweight design pattern. Flyweight Design Pattern According to GoF, flyweight design pattern intent is: > Use sharing to support large numbers of fine-grained objects efficiently Flyweight design pattern is a Structural design pattern like [Facade pattern](/community/tutorials/facade-design-pattern-in-java "Facade Pattern in Java – Example Tutorial"), [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in Java […]

Read more
Iterator Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Iterator Design Pattern in Java

URL: https://www.progressiverobot.com/iterator-design-pattern-java/ Iterator design pattern in one of the behavioral pattern. Iterator pattern is used to provide a standard way to traverse through a group of Objects. Iterator pattern is widely used in [Java Collection Framework](/community/tutorials/collections-in-java-tutorial "Java Collections Framework Tutorial"). Iterator interface provides methods for traversing through a collection. Iterator Design Pattern ![iterator design pattern](images/iterator-design-pattern-java-section-1.png) […]

Read more
Java Dependency Injection - DI Design Pattern Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Dependency Injection – DI Design Pattern Example Tutorial

URL: https://www.progressiverobot.com/java-dependency-injection-design-pattern-example-tutorial/ Java Dependency Injection design pattern allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable and maintainable. We can implement dependency injection in java to move the dependency resolution from compile-time to runtime. Java Dependency Injection Java Dependency injection seems hard to grasp with theory, so I would take […]

Read more
Abstract Factory Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Abstract Factory Design Pattern in Java

Welcome to Abstract Factory Design Pattern in java example. Abstract Factory design pattern is one of the Creational patterns. Abstract Factory pattern is almost similar to [Factory Pattern](/community/tutorials/factory-design-pattern-in-java) except the fact that its more like factory of factories. Abstract Factory ![abstract factory, abstract factory design pattern, abstract factory pattern](images/abstract-factory-design-pattern-in-java-section-1.png) If you are familiar with [factory […]

Read more
CHAT