ActionScript Developer's Guide to PureMVC by Cliff Hall

ActionScript Developer's Guide to PureMVC by Cliff Hall

Author:Cliff Hall [Cliff Hall]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming / General
ISBN: 9781449314552
Publisher: O'Reilly Media
Published: 2011-12-18T16:00:00+00:00


Chapter 5. Proxying the Model

The PureMVC framework’s Proxy class is a pretty simple affair. It has a few life cycle methods that are called when it is registered and removed; an Object typed data property with attendant getData and setData methods; and it can send notifications to communicate one-way with Mediators or trigger execution of Commands.

It is so simple a class that it almost seems worthless, as a blank sheet of paper might once have appeared before receiving the first words of Catcher in the Rye. But because of this simplicity and the PureMVC Model that acts as a registry for Proxys within the system, it turns out to be really useful. It does not impose much on you in the way of rules; as a best practice, it should not know any of the View or Controller tier classes, and that is really about it.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.