Dependency

A dependency relationship states that a change in specification of one thing may affect another thing that uses it, but not necessarily the reverse [BRJ99]. Figure 4-13 shows an example of dependency between packages Client and Supplier. Client depends on Supplier. If the amount of goods that a Supplier is supposed to provide changes, this change may affect the Client as the Client would have to adjust its behavior to accommodate the change.

Figure 4-13. Dependency relationship between packages.

Figure 4-13. Dependency relationship between packages.

A dependency relationship can exist between classes, packages, and components. The following Figure 4-14 shows an example of dependency relationship between components Client and Supplier.

0 0

Post a comment