[gentle-devel] Events
Brought to you by:
mnmr
From: Morten M. <mo...@me...> - 2006-03-28 17:58:35
|
Hi All, I've now implemented events in Gentle 2.0, and documented the implementation in Confluence (http://www.mertner.com/confluence/display/Gentle/Events). Only the two QueryParameterResolution events need to be implemented before all of the planned modules/plugins can be realized. Having the code for soft deletion, type discrimination on retrieve, concurrency control, etc. in modules that are wired in via events should help reduce the complexity of the code, as well as reduce coupling to make it easier to replace one implementation with another. For instance, it is already possible to replace the configuration and caching subsystems just by subscribing to a few events. The code is a bit scattered, since the EventArgs classes need to be defined where the required parameters can be referenced. This is also why the static EventManager class used to subscribe to events ended up in Gentle.Persistence rather than Gentle.Common. Yours, Morten |