PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: tjiddy on April 21, 2008, 02:55:06



Title: Inversion of Control
Post by: tjiddy on April 21, 2008, 02:55:06
I'll start by stating I'm a long time java developer recently turned to rails/flex.  The other day I was looking at a framework called parsley (http://www.spicefactory.org/parsley/).  They have developed many features from spring into AS3.  I LOVE the dependency injection part (interceptors are very nice too).  Thier MVC isn't nearly as mature as pureMVC.  When I start thinking how nice it would be if I could use dependency injection with pureMVC, I start salivating.  Wouldn't it be cool if you could do all the registering and mappings via an xml file? Registering commands to events, doing the mediator-view mappings, all that stuff would be beautiful, and greatly reduce the amount of AS3 clutter in my project. 

I know it probably won't happen.  But one can dream can't they?


Title: Re: Inversion of Control
Post by: puremvc on April 21, 2008, 04:23:26
Egad man, this is open source! There is no reason why it can't happen.

But it would be a utility, not a modification to the basic framework. Because all the other Ports rely on the latest AS3 versions as reference, the framework has to be really careful with regard to scope and simplest implementation. This is the sort of thing that would be sufficiently complex that it would need to be implemented differently for each Port of the framework based on the target development platform.

So dream away, and use this thread to record your imaginings. If we can come up with a suitable IOC framework, we'll do some demos and make it an official utility project.

-=Cliff>


Title: Re: Inversion of Control
Post by: pedr on April 22, 2008, 11:57:55
Hi tjiddy,

You might be interested in:

 http://www.herrodius.com/blog/category/prana (http://www.herrodius.com/blog/category/prana).

and specifically:

https://prana.svn.sourceforge.net/svnroot/prana/prana-sample-puremvcArch101Demo/trunk (https://prana.svn.sourceforge.net/svnroot/prana/prana-sample-puremvcArch101Demo/trunk)