SalesPoint Framework v3.0

Hook: Change A SalesPoint's Quit Conditions


Requirement

The default conditions imposed on SalesPoint closing are not sufficient.

Method of Adaptation
Augment feature
Level of Support
Parameter Pattern  
HotSpot
Shutdown
Hooks used
Add a new point of sale
Participants
SalesPoint, NewSalesPoint

Changes

  1. subclass NewSalesPoint of SalesPoint.
  2. NewSalesPoint.canQuit overrides SalesPoint.canQuit :
    1. NewSalesPoint.canQuit returns true if the SalesPoint can be closed.
  3. Add a new point of sale [NewSalesPoint = NewSalesPoint].

Comments


SalesPoint Framework v3.0