Prana sample: Movie Application

ActionScript, Design Patterns, Prana Add comments

I just added a new example application to the Prana SVN Repository. The sample application lets you search for movies based on the name of a director you specify. It is based on the MovieLister example that Martin Fowler describes in his “Inversion of Control Containers and the Dependency Injection pattern” article. I figured this would be a far simpler example than the modified Cairngorm Store.



(view source is enabled)

The key point is that we can externally configure the behavior of our application. So if we deploy the Movie application on different clients, they can all look up the movies in a different way, without having to recompile the application for each behavior. We could of course also do this without Prana, but then we would have to write custom configuration code.

The code is pretty well documented so if you browse the svn repository you should already have an idea of how the example works.

If you have any questions or remarks just post them in the comments, join the Prana-user mailinglist or check out the Prana SourceForge page.


Add to Bloglines - Digg This! - del.icio.us - Stumble It! - Twit This! - Technorati links - Share on Facebook - Feedburner
 

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login