Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epomatti/java-gof-patterns
Classical Design Patterns implemented in Java
https://github.com/epomatti/java-gof-patterns
design-patterns gof-patterns java
Last synced: about 12 hours ago
JSON representation
Classical Design Patterns implemented in Java
- Host: GitHub
- URL: https://github.com/epomatti/java-gof-patterns
- Owner: epomatti
- License: mit
- Created: 2019-05-02T14:29:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T01:47:29.000Z (almost 3 years ago)
- Last Synced: 2024-11-17T00:23:44.781Z (2 months ago)
- Topics: design-patterns, gof-patterns, java
- Language: Java
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java Design Patterns (GOF)
![maven](https://github.com/epomatti/java-gof-patterns/actions/workflows/maven.yml/badge.svg)
Classic GoF design patterns implemented in Java that I used to prepare for my OCMJEA6 certification.
## Setup
Install Maven and dependencies dependencies (you can use an IDE plugin as well):
```sh
sudo apt install mavenmvn install
mvn compile
```Install [Lombok](https://projectlombok.org/setup/overview) plugin in your favorite IDE.
Compiled with JDK 11.
## Running it
```sh
mvn exec:java -pl ''
```Example: `mvn exec:java -pl composite`
Available pattern modules:
```
abstract-factory
adapter
builder
chain-of-responsibility
composite
decorator
facade
factory-method
mediator
memento
observer
prototype
proxy
singleton
state
strategy
template-method
visitor
```