您的位置:首页 > 大数据 > 人工智能

Flex开发框架Cairngorm

2006-12-07 15:39 435 查看
Cairngorm是一个开发Flex应用程序的框架,该框架集成了如下的几个设计模式

The Pieces of Cairngorm
· Model Locator: Stores all of your application’s Value Objects (data) and
shared variables, in one place. Similar to an HTTP Session object, except that
its stored client side in the Flex interface instead of server side within a
middle tier application server.
· View: One or more Flex components (button, panel, combo box, Tile, etc)
bundled together as a named unit, bound to data in the Model Locator, and
generating custom Cairngorm Events based on user interaction (clicks,
rollovers, dragndrop.)
· Front Controller: Receives Cairngorm Events and maps them to Cairngorm
Commands.
· Command: Handles business logic, calls Cairngorm Delegates and/or other
Commands, and updates the Value Objects and variables stored in the Model
Locator
· Delegate: Created by a Command, they instantiate remote procedure calls
(HTTP, Web Services, etc) and hand the results back to that Command.
· Service: Defines the remote procedure calls (HTTP, Web Services, etc) to
connect to remote data stores.

Cairngorm 主页:http://labs.adobe.com/wiki/index.php/Cairngorm

Cairngorm 2开发文档(PDF下载) http://www.zhuoqun.net/article.asp?id=157

Part I - Introducing Cairngorm

Part II - Keeping State on the Client

Part III - Architecting the View

Part IV - Feature-driven Development

Part V - Server-side Integration

Part VI - Rapid and Consistent Development with Cairngorm and Flex

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息