Eric Cobb said the following on 09/16/2009 03:44 PM:
> That's good to know! My next question was going to be, with call-method
> coming in Mach-II 1.8 does that mean that Listeners will possibly be
> going away in the future?
>
> I guess this means "No".
>
Nope, listeners will never go away -- they are a large concept behind
Mach-II and even frameworks like Grails (Java). It's that call-method
cannot make decisions on application flow and that is where listeners
excel at. Listeners do application flow controller. Call-method is
more about getting data and logic-less. In the past you have to use
listeners to get data and you'd end up with a ton of getXYZ() calls that
were mostly one liners getUserService().getUser(event.getArg("userId)).
Call-method that does that better and in less code because you don't
have to create a method. However when you need to make a decision (say
posting a form and you need to decided whether it's pass/fail) --
listeners can have the logic in them, but they are usually short and sweet.
.Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---