SalesPoint Framework v3.0

Hook: Log Opening And Closing Of SalesPoints


Requirement

A log entry needs to be written whenever a SalesPoint is opened or closed.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Log management
Hooks used
Add a new point of sale
Participants
SalesPoint, NewSalesPoint

Changes

  1. subclass NewSalesPoint of SalesPoint.
  2. if log opening of SalesPoint:
    1. NewSalesPoint.logSalesPointOpened overrides SalesPoint.logSalesPointOpened , writing a log entry to the appropriate log file.
  3. if log closing of SalesPoint:
    1. NewSalesPoint.logSalesPointClosed overrides SalesPoint.logSalesPointClosed , writing a log entry to the appropriate log file.
  4. Add a new point of sale [NewSalesPoint = NewSalesPoint].

Constraints


SalesPoint Framework v3.0