Model

A Multiton IModel implementation

Inheritance

ObjectModel
Namespace: PureMVC.CoreAssembly: PureMVC in (PureMVC.dll)

Syntax

C#
public class Model: IModel

Remarks

In PureMVC, the Model class provides access to model objects (Proxies) by named lookup

The Model assumes these responsibilities:

  • Maintain a cache of IProxy instances
  • Provide methods for registering, retrieving, and removing IProxy instances

Your application must register IProxy instances with the Model. Typically, you use an ICommand to create and register IProxy instances once the Facade has initialized the Core actors

Constructors

Constructs and initializes a new model

Methods

Model Multiton Factory method.
Check if a Proxy is registered
Initialize the Multiton Model instance.
Register an IProxy with the Model.
Remove an IModel instance
Remove an IProxy from the Model.
Retrieve an IProxy from the Model.

Fields

The Multiton Model instanceMap.
Message Constants
The Multiton Key for this Core
Mapping of proxyNames to IProxy instances

See also