Legato Framework for Flex
Project Home • Forums • Wiki • Known Issues • External Project Link • Contact Project
There are two separate modules:
Legato Actions - extension of well known command pattern to make tasks and actions.
Legato Injection - Depedency Injection Container based on MXML configuration and metadata injection
Actions framework solves some common tasks and problems that exist during rich application development:
- multiple access methods to functionalities (by button, menu item, context menu etc.),
- building multilingual interfaces,
- building sequences of tasks (for example to show dialog and save document before closing it ),
- organizing business components.
- Multilingual support:
Names, icons, tooltips are loaded from resources file . Changing language on runtime changes actions and visual components language.
- Actions aware visual components
Just add your action to button, menu or context menu - visual components will take the look from action and execute it on click.
It's an implementation of the pattern as described by Martin Fowler in “Inversion of Control Containers and the Dependency Injection pattern”. It contains setter injection and constructor injection implementations. Main ideas are to : connect simple components in depedency injection container, make use of Flex features e.g. use MXML files (with code completition etc.) rather than external XML files for depedency injection configuration,
This container can be used also as a service locator.
- Simple MXML configuration
For both setter injection and constructor injection
- Metadata Injection
//Injection by id
public var a:Object ;
//injection by id simpler
public var b:Object;
//injection by type
public var c:SimpleComponent2;
//Injection by type guess
public var d:ExplicitCommandImpl;
//Injection by type works with interfaces, basic classess too
public var e:IExplicitCommand;
Read more on project page and wiki
Flex 3 SDK
This project has an external bug tracker. You can find it here:
Adobe and the Adobe product names are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.