Optional
dataThe data associated with the proxy.
Readonly
nameThe name of the proxy.
Send a INotification
.
Convenience method to prevent having to construct new notification instances in our implementation code.
The name of the notification to send.
Optional
body: anyOptional data associated with the notification.
Optional
type: stringOptional type of the notification.
IProxy
The interface definition for a PureMVCProxy
.In PureMVC,
IProxy
implementors assume these responsibilities:Implement a common method which returns the name of the Proxy.
Provide methods for setting and getting the data object.
Additionally,
IProxy
ies typically:Maintain references to one or more pieces of model data.
Provide methods for manipulating that data.
Generate
INotifications
when their model data changes.Expose their name as a public static const called
NAME
, if they are not instantiated multiple times.Encapsulate interaction with local or remote services used to fetch and persist model data.
IProxy