Project Info

Parsley is an application framework for Flex/Flash/AIR applications written in AS3. It contains the following modules:

IOC Container (Configuration and Dependency Injection)

This is the largest Parsley module. Inspired by the Spring Framework it brings the concept of an IOC (Inversion of Control) container to ActionScript. It is useful for configuration and wiring of applications. It helps building a well structured architecture and decoupling the individual building blocks of your application. Configuration is based on XML files. The framework is non-invasive, you can easily use Parsley XML to configure existing classes. The verbosity of configuration files can be reduced with features like autowiring dependencies by type and by name or with the integration of your own custom XML configuration namespace. (Yes, both ideas also "borrowed" from Spring)

MVC Framework

The MVC (Model View Controller) framework helps decouple the view layer from other parts of the application. It borrows the concept of a FrontController from Cairngorm, but instead of advocating the use of BusinessDelegate and ServiceLocator patterns, the framework integrates the FrontController with the IOC container. The recommended architecture: UI components (Flex or v3 or your own) transform low level UI events into application events and dispatch them through the FrontController. In Parsleys XML configuration you then register application events with controller instances, wiring any required services with dependency injection.

Localization

Parsley comes with a module for runtime localization. While the Flex 3 SDK will offer that too, Parsley can be used with or without Flex. You can create bindings to localized messages in code or in XML configuration files, so all views will update automatically when the user switches to a different language. The framework can be easily extended if you have to work with unusual sources of your messages. The builtin default implementation loads localized messages from XML files.


You can view the Road Map for future versions and the Change Log for previous versions in the Jira issue tracker:

Parsley Road Map

Parsley Change Log


Parsley is Open Source, licensed under the Apache License 2.0.