Protected
Optional
_datathe data object
Protected
Readonly
_namethe proxy name
Protected
facadeReturn the Singleton Facade instance
Static
NAMEThe default name for the Proxy.
Get the data object
The current data or undefined
if no data is set.
Set the data object
The data to set. Can be null
.
Get the proxy name
The name of the proxy.
Create and send an Notification
.
Keeps us from having to construct new Notification instances in our implementation code.
The name of the notification to be sent.
Optional
body: anyOptional data to be included with the notification.
Optional
type: stringOptional type of the notification.
A base
Proxy
implementation.In PureMVC,
Proxy
classes are used to manage parts of the application's data model.A
Proxy
might simply manage a reference to a local data object, in which case interacting with it might involve setting and getting of its data in synchronous fashion.Proxy
classes are also used to encapsulate the application's interaction with remote services to save or retrieve data, in which case, we adopt an asynchronous idiom; setting data (or calling a method) on theProxy
and listening for aNotification
to be sent when theProxy
has retrieved the data from the service.See
Model
Proxy