How rioacosta/s3.02--patterns-2 works
Project Type and Purpose
• This is a standalone Java console application whose sole purpose is educational: to demonstrate three classic GoF design patterns (Builder, Observer, Callback). It is not a web or distributed system but a monolithic demo project.
File-Structure Analysis
• Top-level: README.md plus src/main/java.
• Under src/main/java you have three sibling packages:
• builder – the Builder-pattern demo
• observer – the Observer-pattern demo
• callback – the Callback-pattern demo
• Each package follows the same micro-structure:
– A Main.java (or StartDemo.java) as entry point
– Subpackages for entities/models, interfaces, concrete implementations, and “director” or “logic” classes
Key README Insights
• Three “levels,” each mapping to one pattern demo:
1. Builder → pizza order system
2. Observer → stock‐market notifications
3. Callback → payment gateway for a shoe store
• Java 21, console execution