Tagged “Composite”
2 articles with this tag.
- CompositeCompose objects into tree structures and treat single objects and groups uniformly. A runnable Java 21 product-bundle example with nested discounts, transparency versus safety, sealed interfaces, and where Composite appears in the JDK, Spring and UI frameworks.
- Compound patterns and MVCPatterns rarely appear alone. How Model-View-Controller combines Observer, Strategy and Composite, how Spring MVC maps the idea to the web, MVC versus MVP and MVVM, and other common pattern combinations in real code.