Class SharedData

java.lang.Object
com.portal.app.comp.SharedData
Direct Known Subclasses:
AccountCreationSharedData, PurchaseOfferingSharedData

public abstract class SharedData extends Object
Basic data sharing support. Subclasses might want to add get as well as set methods for use in circumstances where an object might prefer not to be notified when data has changed but would prefer instead to choose its own time of checking for changed data. An object interested in sharing data in could then get shared-out data in one or both of two ways. It could call the get method for the type of data that it is interested in, or it could register itself with the SharedDataManager as a listener and get informed when an event of the matching type is fired. As a matter of course you'll probably want to support both types of data sharing. If you do this, then when adding a set method you should also consider having the set method call this class's fireSharedDataChangedNotification to pass the request along to SharedDataManager to notify any interested listeners rather than having the burden of having the SharedDataManager fire the event fall on the shoulders the caller of the set method.
See Also: