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

Wrong example for event qualifier types with members

XMLWordPrintable

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

              mkouba@redhat.com Martin Kouba
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: