Model
A Singleton 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 Singleton Factory method.
Check if a Proxy is registered
Initialize the Singleton Model instance.
Register an IProxy with the Model.
Remove an IProxy from the Model.
Retrieve an IProxy from the Model.
Fields
Singleton instance
Mapping of proxyNames to IProxy instances
Message Constants
See also
PureMVC.Patterns.Proxy