filtering-iterator-demonstrates-template-method-composability

Status: IN

FilteringIterator's use of Template Method (TestItem and ProcessItem as primitive operations) demonstrates that Template Method serves as a composability mechanism between patterns: Iterator provides the traversal skeleton while Template Method's hook/abstract-operation distinction enables per-element filtering and processing to be varied independently, showing that Template Method functions as a fine-grained integration point between patterns, not just within a single class hierarchy.

Justifications

FilteringIterator exemplifies Template Method as an inter-pattern integration mechanism

Depends on (SL): gof-filtering-iterator-adds-testitem, template-method-dual-role-skeleton-and-safety

Depended on by

JSON