SalesPoint Framework v3.0

Hook: React To Changes In Object's State


Requirement

An object's state must be monitored and reactions to changes of the object's state must be implemented.

Method of Adaptation
Add Feature
Level of Support
Parameter Pattern  
HotSpot
Application architecture
Participants
object , eventType , NewListener

Changes

  1. if object sends events to inform about state changes:
    1. select appropriate eventType.
    2. implementation NewListener of < eventType > Listener or subclass NewListener of < eventType > Adapter.
    3. NewListener implements/overrides the appropriate notification method.
    4. call object.add < eventType > Listener with parameter instance of NewListener.

Constraints

Comments


SalesPoint Framework v3.0