Hi Matthew,

I think you should take a look at guts-events (http://kenai.com/projects/guts), 
it does what you describe:

- observers use annotations (annotations are automatically processed by using a 
Guice TypeListener)
- event dispatching can be synchroneous or not, based on additional annotations 
put on observer methods, you can even define your own threading model if you 
need

Cheers

Jean-François



--- En date de : Jeu 24.2.11, Matthew Bowman <[email protected]> a 
écrit :

> De: Matthew Bowman <[email protected]>
> Objet: Re: Support for Asynchronous Event-Driven communication between 
> objects ?
> À: [email protected]
> Date: Jeudi 24 février 2011, 11h59
> 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.
> 
> 


      

-- 
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