Cairngorm 3 lays the foundations for delivering successful Flex projects. It consists of:

Cairngorm 3 为开发成功的Flex工程做了三件基础工作

  1. Guidelines that describe our preferred client-side architecture; Guidelines 描述了首选的客户端架构
  2. Tools that help to ensure quality, consistency and efficiency when applying Cairngorm;  Tools 确保高质量、一致性、高效率的使用Cairngorm。
  3. Libraries that reduce code by solving recurring problems. Libraries 减少代码解决经常性的问题

Cairngorm Libraries

Introduction

Cairngorm 3 provides a set of optional Flex libraries released under the Cairngorm License. These are designed to support the Cairngorm 3 architecture by providing utilities for navigation, validation, module loading, reduction of view behaviour, task processing and popup management.

Cairngorm 3 基于 Cairngorm License 协议下提供了一整套的Flex库应用。在Cairngorm 3  架构中,有导航,校验,模型加载,视图行为的减少,任务处理和弹出对话框管理这些功能的设计

Several of the Cairngorm 3 libraries are implemented as extensions to the Parsley Application Framework. In order to take advantage of these libraries, you also need to use Parsley. However, other Cairngorm libraries, such as Observer, Popup, Task and Validation are independent of any third-party framework. The Cairngorm 3 Architecture can also be applied with other third-party libraries and frameworks.

Cairngorm 3 中有几个库是用来实现 Parsley Application Framework 框架中的功能。为了能使用这些库,你也应该使用Parsley框架。尽管如此,其他的Cairngorm库,比如观察者库,弹出库,任务库,校验库都是独立的第三方框架。Cairngorm 3 架构也可以作为第三方库和框架被使用。

Several of the Cairngorm 3 libraries are currently in beta and subject to change, but you are encouraged to browse the source code, try them out and submit feedback. For more information about retrieving and following the source code of the SVN repository, click here. The Observer, Task, Popup and Validation libraries have been used in production for several years, but Cairngorm 3 marks their first official open-source release.

Cairngorm 3 中的几个库如今还在Beta版本状态,内容也许会改变。但是鼓励你去浏览下源代码 browse the source code,尝试一下 提交下反馈信息。获取更多额信息请点击 hereSVN查看源代码。任务库,弹出库,校验库已经使用了几年了,但是Cairngorm 3 是首次公开发行的开源版本。

Overview of Libraries 概述

A short summary of each library follows, together with links to the download, source code and documentation.

Observer Library 1.0 观察者库 1.0

The Cairngorm Observer library provides a set of non-visual components for declaration in MXML that observe other objects and react to changes in some way and execute view behaviour. These components help to reduce the amount of Script-block logic required in MXML components.

Cairngorm 观察者库为在MXML的声明提供了一套不可视的组件来观察其他对象,并以某种方式做出改变或者执行视图的行为,这些组件可以帮助我们减少MXML组件中的逻辑代码块。

Popup Library 1.0

The Cairngorm Popup library contains components for managing the opening, closure and general behavior of popups. They are designed to minimize Script-block logic in MXML components and to reduce code duplication across applications that manage multiple popups.

为减少MXML中的逻辑代码量 Cairngorm Popup 库提供了一套管理打开关闭和通用行为的弹出框。

Task Library 1.0

The Cairngorm Task library provides an abstraction for performing tasks in sequence and parallel. It might be used for coordinating the start-up sequence of an application or for managing a series of asynchronous processes that need to be performed in a certain order.

Validation Library 1.0

The Cairngorm Validation library is designed to simplify validation of user input and other data. Instead of declaring validators individually in MXML and coordinating them manually, a group of validators can be defined using the ValidatorGroup component. The validity of the whole group can then be determined as one. Validator groups can be nested and detached from the view and applied to other layers of an application, such as a domain model. Additional components are provided for observing validation rules and updating view components to highlight validation errors.

用来对用户的输入或者其他数据做简单的校验,ValidatorGroup组件可以定义一组检验对象,外表看上去就相当于一个校验器。校验组可以嵌入或者分离出视图,应用于程序的其他层上,比如域模型。

Integration Library 0.1 – Parsley Extension - beta

The integration library provides utilities to loosely-couple concerns of the communication with external environments with other client side architectural layers. Aside from sending and retrieving data, it also offers structures to manage global error handling, conflict resolution, and offers presentation components access progress and error information in a loosely coupled way. Supported are currently RPC, data management using LCDS, and LocalConnection. The current version is implemented as a Parsley 2 extension.

提供了与外部环境和其他客户端架构通讯的松耦合工具。除了接受和推送数据,它也提供了管理全局错误事件和冲突解决方案,以及以松耦合方式能将进度和错误呈现出来的组件。 支持远程过程调用和使用LCDS的数据管理组件和LocalConnection。当前的版本是作为Parsley2的扩展来实现的。

Module Library 0.1 – Parsley Extension - beta

The Cairngorm Module library is an extension to the Parsley Application Framework designed to simplify the configuration, loading and displaying of modular content. It contains infrastructure class, view components and a mechanism for loading modular content on demand in response to Parsley messages. The library is in beta and expected to change before release 1.0.

Navigation Library 0.1 – Parsley Extension - beta

The Cairngorm Navigation library provides utilities to ease the creation of point-to-point navigations, global and local history tracking, wizards, and enter and exit interceptions. It can reduce the amount of Script-block logic needed by allowing dedicated objects to control navigational concerns. The current version is implemented as a Parsley 2 extension.

One Comment

Leave a Reply

You must be logged in to post a comment.