Barracuda like Events in Maverick?

"James A. Hillyerd" <[email protected]> Sat, 06 Mar 2004 18:01:22 -0800
Newsgroups gmane.comp.web.maverick.general
Organization ActiveRain
Message-ID <[email protected]>
I see a lot of talk in the archives of this list about controller 
chaining.  I recently spent some time reading about Barracuda, and I 
like the idea of having an event model.  (And that's about all I liked, 
it looks like you have to really enjoy typing to use Barracuda.  The 
simplest example app is about 800 lines long and doesn't really do all 
that much!)

Here are a couple documents talking about the event model: 
http://barracudamvc.org/Barracuda/docs/events/high_level_overview.html 
and 
http://barracudamvc.org/Barracuda/docs/SimpleLoginApp/simple_login_app.html

Has anyone thought about (or tried) implementing a Barracuda like event 
model in Maverick?

It seems to me you could treat an instance of a Throwaway controller as 
an event of sorts, having it trigger event listeners on objects that 
have registered an interest in that particular event.  Calling these 
objects in the order they registered (or using the Barracuda's 
polymorphism technique) would allow you to do things similar to 
controller chaining.

One interesting possibility this would lead to is modifying how your app 
responds to events/commands at runtime.  You could load you event 
listener configuration out of a database at startup, and then modify it 
over while it's running.

Anyway, it was just a thought. :)

-james

-- 
James A. Hillyerd <[email protected]>
Java Software Engineer - ActiveRain.com


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
[INVALID FOOTER]