-
Bug
-
Resolution: Done
-
Minor
-
None
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...).