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

Reusing the Model Tier > The Application Facade

The Application Facade

Class

ApplicationFacade.as

Code

package com.futurescale.sa
{
    import com.futurescale.sa.controller.command.startup.StartupCommand;
    import com.futurescale.sa.controller.constant.AppConstants;
    
    import org.puremvc.as3.patterns.facade.Facade;
    
    public class ApplicationFacade extends Facade
    {
        /**
         * The Singleton instance factory method.
         */
        public static function getInstance( ) : ApplicationFacade 
        {
            if ( instance == null ) instance = new ApplicationFacade( );
            return instance as ApplicationFacade;
        }
        
        /**
         * A convenience method for starting up the PureMVC 
         * apparatus from the application.
         */
        public function startup( app:StoryArc....

  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint