PureMVC
   HOME

TheInfoList



OR:

PureMVC is a framework for creating applications based upon the well-established
model–view–controller Model–view–controller (MVC) is a software architectural pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. This is done to separate internal representations of info ...
(MVC) design pattern. The free,
open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized so ...
framework was originally implemented in the ActionScript 3 language for use with
Adobe Flex Apache Flex, formerly Adobe Flex, is a software development kit (SDK) for the development and deployment of cross-platform rich web applications based on the Adobe Flash Adobe Flash (formerly Macromedia Flash and FutureSplash) is a multimedia ...
, Flash and AIR, and it has since been ported to nearly all the major web development platforms.


Implementations


Standard version

The Model, View and Controller application tiers are represented by three Singletons (a class of which only one instance may be created). The MVC Singletons maintain named caches of Proxies, Mediators and Commands, respectively. The Facade, also a Singleton, provides a single interface for communications throughout the application. These four Singletons are referred to as the Core Actors. * Data objects, be they local or remote, are managed by Proxies. * The View Components that make up the User Interface are managed by Mediators. * Commands may interact with Proxies, Mediators, as well as trigger or execute other Commands. All actors discover and communicate with each other via the Facade, rather than work directly with Model, View and Controller. PureMVC also introduces a Publish/subscribe-style Observer notification scheme. This allows asynchronous, event-driven communications between the actors of the system, and also promotes a loose coupling between those actors, since the subscriber never needs to have direct knowledge of the publisher. The Standard Version Reference Implementation is written in ActionScript 3.


MultiCore version

This variation supports modular programming, allowing the use of independent program modules each with their own independent PureMVC 'Core'. A Core is a set of the four main actors used in the Standard framework (Model, View, Controller and Facade). This version of the framework uses Multitons instead of Singletons. Rather than storing a single instance of the class, a Multiton stores a ''map'' of instances. Each Core is referenced by an associated Multiton Key. The MultiCore Version of the framework was developed due to the widespread need for modular support in a world of ever-more ambitious Rich Internet Applications which must load and unload large pieces of functionality at runtime. For instance a PDA application might need to dynamically load and unload modules for managing task list, calendar, email, contacts, and files. The "multicore" version facilitates unit testing. The MultiCore Version Reference Implementation is written in ActionScript 3.


Ports

There are several active PureMVC ports—implementations for various programming languages, each contributed and supported by PureMVC community members. Each port, in turn supports one or more target development platforms, which cover most major mobile, browser, desktop and server environments.


External links

*
Understanding the PureMVC Open Source Framework on ActiveTuts+PureMVC Console from Kap LabsThe Algorithmist on PureMVC
{{Adobe Flash Software frameworks