Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Building the Commands > The Startup Command

The Startup Command

Class

StartupCommand.as

Responsibilities

The StartupCommand has somewhat unique responsibilities. At the time it is run, none of the Proxys or Mediators have yet been registered, so we will register them, preparing the Model with its Proxys before preparing the View with its Mediators. The order is important because Mediators that form relationships with Proxys often do so by retrieving them in onRegister(), thus the Proxys should already be available at that time.

  • Extend SimpleCommand

  • Implement the common phases of the startup process

  • Register all our AbstractProxy subclasses, in the proper order so that their constructor-enforced interdependencies can be served


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial