Proxy in three flavours (static, JDK dynamic, CGLIB) and how Spring AOP selects between them and why self-invocation bypasses it. Decorator vs Proxy (augmentation vs control). Java I/O streams as the canonical Decorator. Adapter (class vs object), Facade, Composite for recursive tree structures.
// Lessons
- 01soon
What Makes a Pattern Structural?
- 02soon
Proxy — Static Proxy: The Manual Way
- 03soon
Proxy — JDK Dynamic Proxy and the Interface Requirement
- 04soon
Proxy — CGLIB for Concrete Classes and Spring AOP Selection
- 05soon
Proxy — The Self-Invocation Trap That Bypasses AOP
- 06soon
Decorator — Wrapping Behaviour Without Subclassing
- 07soon
Decorator — Java I/O Streams as the Canonical Example
- 08soon
Adapter and Facade — Bridging and Simplifying
- 09soon
Composite — Recursive Tree Structures