Package com.portal.app.comp
Class SharedData
java.lang.Object
com.portal.app.comp.SharedData
- Direct Known Subclasses:
AccountCreationSharedData
,PurchaseOfferingSharedData
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fireSharedDataChangedNotification
(String propertyName, Object oldValue, Object newValue) Asks the shared data manager to report a bound property update to any registered listeners.protected void
fireSharedDataVetoableNotification
(String propertyName, Object oldValue, Object newValue) Asks the shared data manager to fire a vetoable change notification to any registered listeners.abstract void
recycle()
-
Constructor Details
-
Method Details
-
recycle
public abstract void recycle()