Dart DocumentationpuremvcIProxy

IProxy Interface

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

Extends

INotifier

Implemented by

Proxy

Methods

Code get data() #

Dynamic get data();

Code void set data(dataObject) #

This IProxy's dataObject.

void set data( Dynamic dataObject );

Code getData() #

Get the dataObject.

  • Returns Dynamic - the dataObject.
Dynamic getData();

Code String getName() #

Get the [IProxy] [name].

String getName();

Code String get name() #

String get name();

Code void set name(String proxyName) #

This IProxy's name.

void set name( String proxyName );

Code void onRegister() #

Called by the IModel when the IProxy is registered.

void onRegister( );

Code void onRemove() #

Called by the IModel when the IProxy is removed.

void onRemove( );

Code void setData(dataObject) #

Set the dataObject.

  • Param Dynamic - the dataObject this IProxy will tend.
void setData( Dynamic dataObject );