InitializeModel()

Initialize the Model.
Namespace: PureMVC.Patterns.FacadeAssembly: PureMVC in (PureMVC.dll)

Syntax

C#
protected void InitializeModel()

Remarks

Called by the initializeFacade method. Override this method in your subclass of Facade if one or both of the following are true:

  • You wish to initialize a different IModel.
  • You have Proxys to register with the Model that do not retrieve a reference to the Facade at construction time.

If you don't want to initialize a different IModel, call super.initializeModel() at the beginning of your method, then register Proxys.

Note: This method is rarely overridden; in practice you are more likely to use a Command to create and register Proxys with the Model, since Proxys with mutable data will likely need to send INotifications and thus will likely want to fetch a reference to the Facade during their construction.