The UML Profile for Framework Architectures

B.1 Factory Method pattern tags

Figure B.1 shows the static structure of the Template Method pattern (Gamma et al. 1995) annotated with UML-F tags. Table B.1 summarizes the Template Method pattern UML-F tags. Template Method is based on the Unification construction principle.

Figure B.1. Structure of the Factory Method pattern annotated with UML-F tags.

Table B.1. Definition of the UML-F Factory Method pattern tags.

Tags

FacM Creator ,

FacM facM ,

FacM anOp ,

FacM Product ,

FacM ConcreteProduct ,

FacM ConcreteCreator , and

FacM facM

Apply to

As shown in Fig. B.2:

Class ( FacM Creator , FacM Product , FacM ConcreteProduct , FacM ConcreteCreator )

Method ( FacM facM , FacM anOp , FacM facM )

Interface ( FacM Product )

Type String.
Expansion

The Factory Method pattern is based on the Unification principle and therefore its tags expand as follows:

FacM Creator to Unif TH ,

FacM facM to Unif-t , and

FacM anOp to Unif h .

Категории