template-method-dual-role-skeleton-and-safety

Status: IN

Template Method serves a dual architectural role: as the controlled inheritance counterexample (fine-grained override control with five operation kinds) it bounds the composition paradigm, AND as the safety enforcement mechanism (Hollywood principle guaranteeing Observer's pre-notification consistency) it enables reliable pattern composition — the same inversion-of-control mechanism both justifies inheritance in narrow cases and makes composition-based patterns safe.

Justifications

Template Method's override control and its Observer safety role are two manifestations of the same Hollywood principle, revealing it as both the exception that proves the composition rule and the mechanism that makes composition-based notification safe

Depends on (SL): template-method-principled-inheritance-counterexample, observer-consistency-via-template-method

Depended on by

JSON