Last Wednesday I had the pleasure of presenting at the Adobe RIA user group in London. Topic covered this time was “Scaling Flex for Enterprise Applications” and covered some of patterns we use at Lab49 when building Flex applications.
In August last year we started looking at alternatives for the typical Cairngorm 2 approach, having used it on a number of large projects we didn’t really see it as a framework suited for the kind of applications we develop in Lab49. Some of the issues we were struggling with was the difficulties with integrating with modules, the amount of boiler plate code like events, commands, delegates, responders for every single thing you want to do, etc. Another common problem with Cairngorm 2, and other frameworks, is managing presentation models and the sharing of data without having a hierarchy of objects and passing it down from a parent view to all the children.
The search for a good IoC framework began, but there wasn’t a lot of frameworks out there that supported everything we wanted, but after some investigation the decision landed on Parsley. Parsley supports both Flex Modules and dependency injection, two of our main criteria. We have now successfully used it on a number of projects. If you are looking for an example of building a Parsley based Flex application, have a look at this blog post by Christophe Coenraets alternatively have a look the documentation, Parsley is comprehensively documented: Parsley Developer Manual
After a rather long introduction, here is the presentation: Scaling Flex for Enterprise Applications