IProxy class

The interface definition for a PureMVC MultiCore Proxy.

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
Implementers

Constructors

IProxy()

Properties

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

Methods

getData() → dynamic
Get the dataObject. [...]
getName() String
Get the IProxy name. [...]
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() → dynamic
Called by the IModel when the IProxy is registered.
onRemove() → void
Called by the IModel when the IProxy is removed.
sendNotification(String noteName, [dynamic body, String type]) → void
Send an INotification. [...]
inherited
setData(dynamic dataObject) → void
Set the dataObject. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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