Context: |
Objects of a type family are covariantlly associated one-to-many with objects of a parallel type family (e.g. editors and edited documents). |
||||||||
Challenge: |
to encapsulate the fact of association and its management in the abstract base class, still, allowing a derived-class to limit the contained population safely. |
||||||||
Skill: |
|||||||||
Participants: |
|
||||||||
Signature: |
Container contains (or references) Resources. Concrete Container specializes in Concrete Resources (but does not contain them directly). |
||||||||
Used patterns and idioms: |
Optionally - Template Method. |
||||||||
Used by: |
Composite pattern, observer (GOF), general-purpose editors. |
||||||||
Scope: |
General. |