Model Glue:Gesture - New Feature For Review - Default Event Types

Your Input Requested

After a deep discussion on the Model-Glue mailing list about Default Event Types we've come up with something that seems to work for everyone. Here is a special build with an implementation of Default Event Types for your review.

Explanation

As you know, Model-Glue Event Types allow classification of functionality and assignment to Event-Handlers. Event Types increase reusability, code-clarity and increase line-potency of Model-Glue applications. You can read more on Model-Glue Event Types here.

Where You Come In

We want to have a community review on this feature. Please take it for a test drive. Here is how you use it:

<event-types>
<event-type name="MyDefaultEventType">
<after>
<results>
<result do="template.main" />
</results>
</after>
</event-type>

<event-type name="AnotherEventType">
<after>
<results>
<result do="template.different" />
</results>
</after>
</event-type>
</event-types>

<!-- declares the default event type -->
<event-handlers defaultType="MyDefaultEventType">
<!-- inherits the defaultType -->
<event-handler name="page.1">
</event-handler>

<!-- overrides the defaultType and only gets AnotherEventType -->
<event-handler name="page.2" type="AnotherEventType">
</event-handler>

<!-- removes the defaultType -->
<event-handler name="page.3" type="">
</event-handler>
</event-handlers>

<!-- no default type declared -->
<event-handlers>
<!-- apply event type individually -->
<event-handler name="page.3" type="AnotherEventType">
</event-handler>
</event-handlers>

A special thanks to Chris Blackwell for providing a patch to enable this feature. Another thanks to Doug Hughes for helping me get the XMLModuleLoader unit tests sorted out.

Related Blog Entries

TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
I don't have time to try the special build but reading this post and the docs/wiki it seems like a great implementation of Event types feature. Seems like we need a t-shirt however: "Got line-potency? Get Model-Glue!" or "Model-Glue: increasing line-potency one event at a time."
# Posted By Ryan TJ | 6/11/09 1:09 PM
Thanks that helped establish the XML Module Loader.XML Module Loader - helps in the work. Find helpful for you application http://www.queentorrent.com
# Posted By Nina Lee | 9/5/09 9:58 AM
This post and the docs/wiki it seems like a great implementation of Event types feature. Seems like we need a t-shirt however: "Got line-potency? Get Model-Glue!" or "Model-Glue: increasing line-potency one event at a time."
http://www.btscene.com
# Posted By Barron | 6/22/10 6:16 AM
Event types feature. Seems like we need a t-shirt however: "Got line-potency? Get Model-Glue!" or "Model-Glue: increasing line-potency one event at a time." http://www.jocurifotball.org
# Posted By jocuri fotbal | 3/21/11 8:46 AM
Model-Glue: increasing line-potency one event at a time
# Posted By jocuri fotbal | 3/21/11 8:59 AM
Seems like we need a t-shirt however: "Got line-potency? Get Model-Glue!" or "Model-Glue: increasing line-potency one event at a time."
# Posted By ben 10 | 6/4/11 5:57 PM
© 2017 Joe Rinehart
BlogCFC was created by Raymond Camden. This blog is running version 5.9.3.006.