Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Inversion of Control  (Read 6872 times)
tjiddy
Jr. Member
**
Posts: 10


View Profile Email
« 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?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
« Last Edit: April 21, 2008, 04:30:57 by puremvc » Logged
pedr
Port to AS2
Full Member
*
Posts: 27


View Profile Email
« Reply #2 on: April 22, 2008, 11:57:55 »

Hi tjiddy,

You might be interested in:

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

and specifically:

https://prana.svn.sourceforge.net/svnroot/prana/prana-sample-puremvcArch101Demo/trunk
Logged
Pages: [1]
Print