SalesPoint Framework v3.0

Hook: React to Adding or Removing Of SalesPoint


Requirement

A reaction is necessary, whenever a SalesPoint is added to, or removed from, the Shop.

Method of Adaptation
Augment feature
Level of Support
Parameter Pattern  
HotSpot
Application architecture
Hooks used
Incorporate new Shop
Participants
Shop, NewShop

Changes

  1. subclass NewShop of Shop.
  2. if reaction to adding of SalesPoints necessary:
    1. NewShop.onSalesPointAdded overrides Shop.onSalesPointAdded .
    2. synchronisation (Shop.onSalesPointAdded, additional reactions).
  3. if reaction to removal of SalesPoints necessary:
    1. NewShop.onSalesPointRemoved overrides Shop.onSalesPointRemoved .
    2. synchronisation (Shop.onSalesPointRemoved, additional reactions).
  4. Incorporate new Shop [NewShop = NewShop].

Comments


SalesPoint Framework v3.0