Why would I want to register a Proxy through a command rather than registering it directly through a Mediator?
I was wondering why would you do that, specially during instantiation but the more I was reading about the subject I discovered that the benefit of doing this through a command is that then I have the ability to call the proxy methods through the Command when necessary rather than being tied up with a specific Mediator.
From the Docs:
Preparing the Model is usually a simple matter of creating and
registering all the Proxies the system will need at startup.
The ModelPrepCommand above is a SimpleCommand that prepares
the Model for use. It is the first of the previous MacroCommand’s
sub-commands, and so is executed first.
Via the concrete Façade, it creates and registers the various Proxy
classes that the system will use at startup. Note that the Command
does not do any manipulation or initialization of the Model data. The
Proxy is responsible for any data retrieval, creation or initialization
necessary to prepare its Data Object for use by the system.
Could some one confirm my thoughts?