The UML Profile for Framework Architectures
5.3 Recipe for adapting the Unification construction principle
The Unification construction principle consists of one class marked as Unif-TH . It contains both the template method, marked as Unif-t , and the hook method, marked as Unif-h . Figure 5.4 shows the structure of this pattern and Table 5.3 describes the corresponding generic recipe. Though variation points based on the Unification construction principle are straightforward to adapt, the generic recipe serves as a checklist.
Figure 5.4. The structure of the Unification construction principle
Recipe 'Generic adaptation for the Unification construction principle' | |
---|---|
Intent | The recipe describes how to adapt a variation point that is designed according to the Unification construction principle. Framework-specific considerations are not provided here. |
Classes |
|
Steps to Apply |
|
Discussion | The Unification construction principle doesn't allow the hook implementation to change during runtime. The Unif TH base class may provide a default implementation for the Unif h() method. |