[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-476?page=co...
]
Anirudh Vyas commented on HHH-476:
----------------------------------
Steve,
Hibernate Event System lacks documentation as well as some of the parts ( or i think so,
correct me if i go wrong somewhere ).
In the Event System ( for example OnSaveOrUpdateEvent )
It would be appropriate to move all the Event delegation based code to an Event Delegate
which has all the listeners registered to it and then use a Broadcast agent to do
broadcast ( or Fire an event in Hibernate Terminology ) the events and loop through
listeners to check.
something like :
// fire the event
SessionImpl.broadcastSaveEvent( SaveEvent( Phase.SAVE, Source etc etc ) ,
BaseEventDelegate );
// use a BroadCast interface and implement a DefaultBroadcastAgent and do something like
DefaultBroadcastAgent.processBroadcast( BaseEventDelegate )
// broadcaster above uses event delegate passed to it to loop through listeners.
// same as in SessionImpl.
we could also check if listeners passed to this was an appropriate listener or not.
Let me know in case you need more clarifications.
Regards
Vyas, Anirudh
Event System documentation
--------------------------
Key: HHH-476
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-476
Project: Hibernate3
Issue Type: Improvement
Components: documentation
Affects Versions: 3.0.3
Reporter: Alexandre Torres
The new event system documentation reference guide is too small. It does not cover issues
about transaction and chaining. What about a tutorial in using that?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira