Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-860

Fired events are observed by any match.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.1.0.CR3
    • None
    • None
    • Hide

      Inject the following event to your code:

      @Inject @Special Event<String> strHandler;

      Then create the following observers:

      public void observeString(@Observes String s)...
      public void observeSpecialString(@Observes @Special String s)...

      both methods are invoked.

      Show
      Inject the following event to your code: @Inject @Special Event<String> strHandler; Then create the following observers: public void observeString(@Observes String s)... public void observeSpecialString(@Observes @Special String s)... both methods are invoked.

      Using the gist as an example code base: https://gist.github.com/843239

      One expects that when observes are invoked, they match the exact qualifiers of the injected event, however weld is doing any possible match when choosing observer methods.

            pmuiratbleepbleep Pete Muir (Inactive)
            meetoblivion_jira John Ament (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: