PureMVC Framework for Haxe: API Documentation
Back | Index
interface org.puremvc.haxe.interfaces.IProxy

The interface definition for a PureMVC Proxy.

In PureMVC, `IProxy` implementors assume these responsibilities:

- Implement a common method which returns the name of the `Proxy`.

Additionally, `IProxy`s typically:

- Maintain references to one or more pieces of model data.
- Provide methods for manipulating that data.
- Generate `INotifications` when their model data changes.
- Expose their name as a `public static var` called `NAME`.
- Encapsulate interaction with local or remote services used to fetch and persist model data.

function getData() : Dynamic
  Get the data object
function getProxyName() : String
  Get the `Proxy` name
function onRegister() : Void
  Called by the Model when the `Proxy` is registered
function onRemove() : Void
  Called by the Model when the `Proxy` is removed
function setData(data : Dynamic) : Void
  Set the data object

Back | Index