IProxy implementation.
More...

Public Member Functions | |
| Proxy () | |
| Proxy (string proxyName) | |
| Constructs a new proxy with the specified name and no data. | |
| Proxy (string proxyName, object data) | |
| Constructs a new proxy with the specified name and data. | |
| virtual void | OnRegister () |
| Called by the Model when the Proxy is registered. | |
| virtual void | OnRemove () |
| Called by the Model when the Proxy is removed. | |
Static Public Attributes | |
| static string | NAME = "Proxy" |
Protected Attributes | |
| string | m_proxyName |
| object | m_data |
| The data object to be managed. | |
Properties | |
| string | ProxyName [get] |
| Get the proxy name. | |
| object | Data [get, set] |
| Set the data object. | |
IProxy 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 asyncronous idiom; setting data (or calling a method) on the Proxy and listening for a Notification to be sent when the Proxy has retrieved the data from the service
| PureMVC.Patterns.Proxy.Proxy | ( | ) |
Constructs a new proxy with the default name and no data
| PureMVC.Patterns.Proxy.Proxy | ( | string | proxyName | ) |
Constructs a new proxy with the specified name and no data.
| proxyName | The name of the proxy |
| PureMVC.Patterns.Proxy.Proxy | ( | string | proxyName, | |
| object | data | |||
| ) |
Constructs a new proxy with the specified name and data.
| proxyName | The name of the proxy | |
| data | The data to be managed |
| virtual void PureMVC.Patterns.Proxy.OnRegister | ( | ) | [virtual] |
| virtual void PureMVC.Patterns.Proxy.OnRemove | ( | ) | [virtual] |
object PureMVC.Patterns.Proxy.m_data [protected] |
The data object to be managed.
string PureMVC.Patterns.Proxy.m_proxyName [protected] |
The name of the proxy
string PureMVC.Patterns.Proxy.NAME = "Proxy" [static] |
The default proxy name
object PureMVC.Patterns.Proxy.Data [get, set] |
string PureMVC.Patterns.Proxy.ProxyName [get] |
1.5.8