SalesPoint Framework v3.0

Hook: Change Shop Quit Behavior


Requirement

The application's response to the " Quit " menu button or any OS dependent gesture for closing the application must be altered. For example, saving the application's state on shutdown is not necessary nor wanted.

Method of Adaptation
Replace Feature
Level of Support
Parameter Pattern  
HotSpot
Shutdown
Hooks used
Incorporate new Shop
Participants
Shop, NewShop

Changes

  1. subclass NewShop of Shop.
  2. NewShop.quit overrides Shop.quit :
    1. synchronisation ( Shop.shutdown , System.exit (0) ).
    2. System.exit must only be called, if Shop.shutdown returns true.
  3. Incorporate new Shop [NewShop = NewShop].

Comments


SalesPoint Framework v3.0