Docstoc

Decorator

Document Sample
Decorator Powered By Docstoc
					Decorator
Starbuzz Coffee
                 Mercury


                                            emailOrRule.<property>
                                            “pass-through”




associations

               Diagram doesn’t show
               association between
               IEmailOrRule/Rule and     GetRootEmail()
               EmailAttachmentList,      return emailOrRule
               EmailAttachment,
               EmailAddressList
               (highlighted in yellow)
  Differences: Mercury vs Starbuzz
• Base component (equivalent to Beverage) is
  a/n __________ (not a/n _______)
• Mercury abstract decorator is called
  _________ (equivalent to CondimentDecorator). It is an
  _________ _______ (not concrete).
• Mercury decorators override __________
  not _________
• Mercury decorators add 5 new ________,
  such as ________ and ________