https://github.com/osandadeshan/java-design-patterns-examples
A repository that contains design patterns in Java.
https://github.com/osandadeshan/java-design-patterns-examples
design-patterns hacktoberfest java
Last synced: 7 months ago
JSON representation
A repository that contains design patterns in Java.
- Host: GitHub
- URL: https://github.com/osandadeshan/java-design-patterns-examples
- Owner: osandadeshan
- Created: 2020-10-11T04:10:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-11T05:58:41.000Z (almost 5 years ago)
- Last Synced: 2025-01-13T08:27:47.329Z (9 months ago)
- Topics: design-patterns, hacktoberfest, java
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Design Patterns
Design patterns are **well-proved solution** for solving the specific problem/task.
## Advantages of a Design Pattern
* They are reusable in multiple projects.
* They provide the solutions that help to define the system architecture.
* They capture the software engineering experiences.
* They provide transparency to the design of an application.
* They are well-proved and testified solutions since they have been built upon the knowledge and experience of expert software developers.
* Design patterns don't guarantee an absolute solution to a problem. They provide clarity to the system architecture and the possibility of building a better system.## When should we use the Design Patterns?
We must use the design patterns **during the analysis and requirement phase of SDLC (Software Development Life Cycle)**.Design patterns ease the analysis and requirement phase of SDLC by providing information based on prior hands-on experiences.
## Categorization of Design Patterns
Basically, design patterns are categorized into two parts:1. Core Java (or JSE) Design Patterns.
2. JEE Design Patterns.## Core Java Design Patterns
In core java, there are mainly three types of design patterns, which are further divided into their sub-parts:**1. Creational Design Pattern**
1. Factory Pattern
2. Abstract Factory Pattern
3. Singleton Pattern
4. Prototype Pattern
5. Builder Pattern**2. Structural Design Pattern**
1. Adapter Pattern
2. Bridge Pattern
3. Composite Pattern
4. Decorator Pattern
5. Facade Pattern
6. Flyweight Pattern
7. Proxy Pattern**3. Behavioral Design Pattern**
1. Chain Of Responsibility Pattern
2. Command Pattern
3. Interpreter Pattern
4. Iterator Pattern
5. Mediator Pattern
6. Memento Pattern
7. Observer Pattern
8. State Pattern
9. Strategy Pattern
10. Template Pattern
11. Visitor Pattern