Proxy class

A base IProxy implementation.

In PureMVC, IProxy implementors assume these responsibilities:

  • Implement a common method which returns the name of the IProxy.
  • Provide methods for setting and getting a Data Object.

Additionally, IProxys typically:

  • Provide methods for manipulating the Data Object and referencing it by type.
  • Generate INotifications when their Data Object changes.
  • Expose their name as a static final String called NAME.
  • Encapsulate interaction with local or remote services used to fetch and persist data.

See IModel

Inheritance
Implemented types

Constructors

Proxy(String name, [dynamic data])
Constructor [...]

Properties

data ↔ dynamic
This IProxy's dataObject.
read / write, override
facade IFacade
Return the Multiton Facade instance [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
This IProxy's name.
read / write, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getData() → dynamic
Get the dataObject. [...]
override
getMultitonKey() String
inherited
getName() String
Get the IProxy name. [...]
override
initializeNotifier(String key) → void
Initialize this INotifier instance. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onRegister() → void
Called by the IModel when the IProxy is registered. [...]
override
onRemove() → void
Called by the IModel when the IProxy is removed
override
sendNotification(String noteName, [dynamic body, String type]) → void
Send an INotification. [...]
inherited
setData(dynamic dataObject) → void
Set the dataObject. [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited