Detachable Inspector/Removable cout: A Structural Pattern for Designing Transparent Layered Services


By: A. Sane, R. Campbell

Summary: Decouple and segregate meta-facilities so they can be changed or removed without affecting the program.

Pattern: Detachable Inspector

Meta-facilities for instrumentation or debugging are commonly implemented by statements interspersed in program code. As a result, program modules become difficult to reuse in contexts where the meta-facilities may be absent or have incompatible implementations. Decouple and segregate meta-facilities so they can be changed or removed without affecting the program.


Published in: PLoPD2
Pages: 159-175
Category: Structural

Url: http://choices.cs.uiuc.edu/sane/home.html#dp