An open API service indexing awesome lists of open source software.

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.

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
```