On Feb 23, 2011, at 10:12 PM, zixzigma wrote:
> what do you think about support for Asynchronous/Event Driven communication 
> between objects ?
> do you use this technique in your development ? what framework do you use,
> and does it make sense to add this to Guice ?

+1

I've "pseudo" implemented this in a project I've been developing. Coming from 
Seam, I followed their event API because I thought it was very clean and 
elegant and made use of annotations for registering observers. There was two 
major things that came to mind when I thought about making a guice-events 
extension:

1) How do you detect the observer annotations? (I used scannotation)

It's possible that you could bind the observers but auto-detection would be 
much cleaner and at a small up-front cost.

2) How do you handle the asynchronicity of event dispatching? (I used Quartz).

This could be abstracted to an SPI such that different async backends could be 
PnP'd

mgb

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
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/google-guice?hl=en.

Reply via email to