About
The official blog of Team Mach-II and is the best place to stay up to date on all things Mach-II.
Blog Search
Mach-II 1.6 Spec: Broadcast Style Listeners
Team Mach-II is proud to release a specification for a proposed new feature for Mach-II 1.6 and we need your comments / thoughts / reactions. Please read the entire specification and if you have questions or comments please comment on our new Trac install on Ticket #4.
Summary
There has been discussions in the past that Mach-II does not allow for multiple listener notifications via a single "broadcast" command. Model-Glue's entire listener (aka controllers in Model-Glue) works on a broadcast system versus Mach-II somewhat more direct approach with the <notify> command. Any listeners have has a registered interest in a particular broadcasted message will receive the message for use. This allows you to invoke multiple listener methods by broadcasting a single message.
Read the entire specification
http://docs.google.com/View?docid=dhjcwfn4_38gnmpfc
Mach-II - We're Community Driven!
7 Comments
|
0 Trackbacks
|
Mach-II 1.6,
Announcements |
Send
Posted 11/4/07
@ 4:56 PM by Peter J. Farrell
Comments
I like this idea very much. I think this would help in the creation and maintenance of applications since you can change the listener(s) managing the event without modifying the event-handler.
In my opinion it's a great addition to the framework and it would provide a little flexibility to satisfy different programing preferences.
Posted by jorge loyo at 11/5/07 4:31 AM
FYI,
When I enter a comment, I get an error:
"You did not enter the correct validation code. Please try agin."
The comment posts successfully, however.
Seems Jorge Loyo had as similar problem.
DW
Posted by Dan Wilson at 11/5/07 8:48 AM
Hmm, you know what is interesting about that, is that I have been having the same issue on other folks blogs as well (including those run by BlogCFC).
Posted by Kyle Hayes at 11/5/07 9:03 AM
I'll look into the problem. I have a feeling I'm running an older version of MachBlog here.
Posted by Peter J. Farrell at 11/5/07 9:51 AM
+1 on this. I could see a lot of possibilities for this. There are workarounds for this now, of course, but something that is framework supported gets my vote!
Posted by Brian Meloche at 11/5/07 12:17 PM
A bunch of comments on this on the ticket on Trac if you would like to comment there:
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/ticket/4
Posted by Peter J. Farrell at 11/5/07 1:48 PM
Overall this looks great. It's a nice clean proposed syntax. I like the integrated threading model. Some nit-picks and questions below.
"In the body of each listener tag" - you mean "message tag"?
Why duplicate the message name in "subscribe message="needPrimates"" - is that just a typo? The message name is already specified in the enclosing message tag.
Under "Subscribe Tag Attributes", you have a message attribute (which seems unnecessary) but omit the listener attribute (which *is* necessary).
Can you specify any child tags for the publish verb? (In Model-Glue you can specify additional arguments for the message)
Posted by Sean Corfield at 11/5/07 2:47 PM
