Template Method: sync post code blocks to repo exactly (DataMigration/CsvMigration/ApiMigration were entirely different from repo), Java 25, H6 file labels, fix stale console output, README mapping
This commit is contained in:
15
README.md
15
README.md
@@ -445,6 +445,21 @@ javac 03-behavioral/strategy/*.java -d out/strategy
|
||||
java -cp out/strategy strategy.Main
|
||||
```
|
||||
|
||||
### Template Method (`03-behavioral/template-method/`)
|
||||
|
||||
| Post Section | File(s) |
|
||||
|---|---|
|
||||
| Implementation: Data Migration Pipeline — the abstract class & template method | `DataMigration.java` |
|
||||
| Implementation: Data Migration Pipeline — CsvMigration | `CsvMigration.java` |
|
||||
| Implementation: Data Migration Pipeline — ApiMigration | `ApiMigration.java` |
|
||||
| Implementation: Data Migration Pipeline — wiring it together | `Main.java` |
|
||||
|
||||
Run it:
|
||||
```bash
|
||||
javac 03-behavioral/template-method/*.java -d out/template-method
|
||||
java -cp out/template-method template.Main
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
- *Design Patterns: Elements of Reusable Object-Oriented Software* — Gamma, Helm, Johnson, Vlissides
|
||||
|
||||
Reference in New Issue
Block a user