Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
Hook: Define Persistance Streams
Requirement
The in- and output streams for making persistent or restoring the state of the application need to be defined.
Method of Adaptation
Replace Feature
Level of Support
Parameter Pattern
HotSpot
Persistance
Hooks used
Incorporate new Shop
Participants
Shop
, NewShop
Changes
subclass NewShop of Shop.
to define persistance input stream:
NewShop.retrievePersistanceInStream overrides
Shop.retrievePersistanceInStream
.
NewShop.retrievePersistanceInStream returns a newly opened stream for reading the application's state.
to define persistance output stream:
NewShop.retrievePersistanceOutStream overrides
Shop.retrievePersistanceOutStream
.
NewShop.retrievePersistanceOutStream returns a fresh stream for writing the application's state.
Incorporate new Shop
[NewShop = NewShop].
Comments
You will usually have to override both methods, as their behavior must be synchronised in some way.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES