The hello-world project
- Make sure following software is installed on your PC
- OpenJDK 17 or later
.
├── prototype-pattern
│ ├── pom.xml
│ ...
├── pom.xml
|
└── README.md
$ ./mvnw clean package
$ java -jar ./prototype-pattern/target/prototype-pattern-0.0.1-SNAPSHOT.jar
10:18:38.279 [main] INFO io.github.huypva.prototype_pattern.Main - ConcretePrototype: io.github.huypva.prototype_pattern.ConcretePrototype@46ee7fe8
10:18:38.280 [main] INFO io.github.huypva.prototype_pattern.Main - ConcretePrototypeClone: io.github.huypva.prototype_pattern.ConcretePrototype@73c6c3b2
10:18:38.280 [main] INFO io.github.huypva.prototype_pattern.Main - ConcretePrototype field=: newValue
10:18:38.280 [main] INFO io.github.huypva.prototype_pattern.Main - ConcretePrototypeClone field=: value1
The code is open sourced. I encourage fellow developers to contribute and help improve it!
- Fork it
- Create your feature branch (git checkout -b new-feature)
- Ensure all tests are passing
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request