Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-422

Wrong example for event qualifier types with members

    Details

      Description

      The following snippet in "10.2.2 Event qualifier types with members" is wrong:

      public void login() {
      final User user = ...;
      loggedInEvent.fire( new LoggedInEvent(user),
      new RoleQualifier() { public String value() { return user.getRole(); } );
      }
      

      javax.enterprise.event.Event.fire() method does not have qualifiers param. The example should either use Event.select(Annotation...) along with Event.fire() or BeanManager.fireEvent(Object, Annotation...).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                mkouba Martin Kouba
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: