Namespace: PureMVC.Core.Model
Class TModel
System.TInterfacedObject
|
+-- PureMVC.Core.Model.TModel
All Implemented Interfaces: - IModel
public class TModel ( System.TInterfacedObject , IModel )
Abstract- False
Sealed- False
Persistent- False
seealso
summary- A Singleton IModel implementation
remarks- In PureMVC, the Model class provides access to model objects (Proxies) by named lookupThe Model assumes these responsibilities:Maintain a cache of IProxy instancesProvide 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
Destroy
public procedure Destroy()
Abstract- False
Reintroduce- False
Virtual- False
Override- True
Final- False
HasProxy
public function HasProxy(ProxyName: string): Boolean
Abstract- False
Reintroduce- False
Final- False
Returns- Boolean
Virtual- True
Override- False
summary- Check if a Proxy is registered
remarks- This method is thread safe and needs to be thread safe in all implementations.
returns- whether a Proxy is currently registered with the given proxyName.
Class- False
Instance
public function Instance(): PureMVC.Interfaces.IModel.IModel
Abstract- False
Reintroduce- False
Final- False
Returns- IModel
Virtual- False
Override- False
summary- Model Singleton Factory method. This method is thread safe.
Class- True
RegisterProxy
public procedure RegisterProxy(Proxy: PureMVC.Interfaces.IProxy.IProxy )
Abstract- False
Reintroduce- False
Final- False
Virtual- True
Override- False
summary- Register an IProxy with the Model
remarks- This method is thread safe and needs to be thread safe in all implementations.
param- An IProxy to be held by the Model
Class- False
RemoveProxy
public function RemoveProxy(ProxyName: string): PureMVC.Interfaces.IProxy.IProxy
Abstract- False
Reintroduce- False
Final- False
Returns- IProxy
Virtual- True
Override- False
summary- Remove an IProxy from the Model
remarks- This method is thread safe and needs to be thread safe in all implementations.
param- The name of the IProxy instance to be removed
Class- False
RetrieveProxy
public function RetrieveProxy(ProxyName: string): PureMVC.Interfaces.IProxy.IProxy
Abstract- False
Reintroduce- False
Final- False
Returns- IProxy
Virtual- True
Override- False
summary- Retrieve an IProxy from the Model
remarks- This method is thread safe and needs to be thread safe in all implementations.
returns- The IProxy instance previously registered with the given proxyName
param- The name of the IProxy to retrieve
Class- False
to Interface IModel
Client- TModel
Supplier- IModel
to Interface IModel
Client- FInstance
Directed- False
Type- association
Supplier- IModel