smatter
smatter

Reputation: 29168

Factory method UML diagram clarification

I was going through the factory method pattern describe here. I didn't quite get the meaning of the arrows marked from Application to Document and from MyApplication to MyDocument. Can anyone help to me to understand this notation.

alt text

Upvotes: 1

Views: 1332

Answers (1)

bertolami
bertolami

Reputation: 2936

The relation between Application and Document is an Aggregation. It means that an Application (Whole) contains Documents (Parts).

The relation between MyApplication and MyDocument is a Dependency. It means that MyApplication may change when MyDocument changes. In this case it is a <> Dependency, i.e. MyApplication uses MyDocument

Upvotes: 1

Related Questions