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

Fired events are observed by any match.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • 1.1.0.CR3
    • None
    • 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.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: