https://github.com/dinbtechit/sample-spring-boot-factory-pattern
An example implementation of factory/adaptor design pattern without if else or switch case block.
https://github.com/dinbtechit/sample-spring-boot-factory-pattern
factory-pattern spring-boot
Last synced: about 2 months ago
JSON representation
An example implementation of factory/adaptor design pattern without if else or switch case block.
- Host: GitHub
- URL: https://github.com/dinbtechit/sample-spring-boot-factory-pattern
- Owner: dinbtechit
- Created: 2022-01-05T22:00:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-09T01:23:10.000Z (over 4 years ago)
- Last Synced: 2025-04-06T02:46:02.465Z (about 1 year ago)
- Topics: factory-pattern, spring-boot
- Language: Java
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot - Factory/Adaptor Design Pattern
An example implementation of factory/adaptor design pattern without if else or switch case block.
| Shapes | Implementation Flow |
|:----------------:|:---------------------------------------------------------------------------:|
| Pencil (Default) | |
| Circle | |
| any shape | Shapes -> ShapeFactory -> ShapeInterface -> ShapeAdaptor -> Rest Controller |
| Rectangle | |
| Diamond | |
# Test
```bash
mvn clean test
```