Just brainstorming here but:<div><br></div><div>1) Methods could observe the raw Event<Type> to receive all events of that type. Then Event would need to expose the qualifiers publicly - maybe as high up as AbstractFacade? </div>
<div><br></div><div>Something like: public void allStrings(@Observes Event<String> event);</div><div><br></div><div>2) Allow registration of a new interface: EventHandler. BeanManager.fireEvent() would be required to fire the event on all registered handlers. The current event observer resolver would be the first implementation of this.</div>
<div><br></div><div>3) Same idea as #2 but restricted to Portable Extensions.</div><div><br></div><div>Good/bad?</div><div><br></div><div><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 5:36 PM, Gavin King <span dir="ltr"><<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hrm. That's true. That's on oversight. Do you have a proposed solution<br>
to this problem? I would be open to addressing this issue in the CDI<br>
MR.<br>
<div><div></div><div class="h5"><br>
On Sun, Jan 17, 2010 at 11:19 AM, Jordan Ganoff <<a href="mailto:jganoff@gmail.com">jganoff@gmail.com</a>> wrote:<br>
> I'm trying to route Events from a portable extension (to be the Seam 3 JMS<br>
> module). After talking to David Allen it seems there is currently no way to<br>
> get the qualifiers for a fired event. Without the qualifiers it doesn't<br>
> seem like routing outside of Weld-core is possible. The idea of using an<br>
> Interceptor on BeanManager.fireEvent() would have worked but we can't assign<br>
> Interceptors to an existing class.<br>
> Any ideas?<br>
> --<br>
> Jordan Ganoff<br>
</div></div>> _______________________________________________<br>
> weld-dev mailing list<br>
> <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Gavin King<br>
<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>
<a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
<a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
<a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
</font></blockquote></div><br></div>