When I build apps without using a microarchitecture, I use a singleton which 
sends all events to the view (call it the main model). That singleton observes 
other singletons which handle various parts of the business logic. I tend to 
not use a controller at all and just make request commands "directly" in the 
model. The model then takes care of the notifications if needed by dispatching 
events.

It's much simpler than using a microarchitecture and usually works well for 
me...

On Mar 7, 2013, at 11:52 AM, Sebastian Mohr wrote:

> Hi,
> 
> I am just building a mobile Flex application for a client of mine. I
> wonder if I could build this Flex application with a custom Eventbus,
> but, without the usage of a Microarchitecture (like Mate [1], Robotlegs
> [2],
> Parsley [3], SpringAS [4] [5] and Swiz [6]).
> 
> As you probably already know, I usually build my Flex applications with a
> MVC structure and a Microarchitecture in the back. The result of the
> application
> MVC structure can be openly reviewed and discussed in my LoginExample [7].
> 
> Since there are folks on this mailing list claiming that Flex applications
> with
> a MVC structure can also be build without the usage of a Microarchitecture,
> I wonder how these folks deal with the Command [8] and Controller [9]
> pattern
> in their Flex applications? I would also be curious how they create a
> custom
> Eventbus, so that thrown events could still be caught inside of Flex
> Modules
> especially in Mobile projects?
> 
> Is there anyone on this mailing list who can give me an advice how to build
> a custom Eventbus so that I still can use the Command [8] and Controller
> [9]
> pattern?
> 
> Thank you!
> 
> 
> [1] http://mate.asfusion.com/
> [2] http://www.robotlegs.org/
> [3] http://www.spicefactory.org/parsley/
> [4] http://www.springactionscript.org/
> [5] http://www.swizframework.org/
> [6] http://www.as3commons.org/as3-commons-eventbus/introduction.html
> [7] http://code.google.com/p/masuland/wiki/LoginExample
> [8] https://code.google.com/p/masuland/wiki/NanoarchitectureCmd
> [9] https://code.google.com/p/masuland/wiki/NanoarchitectureCtl
> 
> 
> -- 
> Sebastian (PPMC)
> Interaction Designer

Reply via email to