[weld-issues] [JBoss JIRA] Created: (WELD-226) 'Default' event observer doesn't get notified when firing events (with qualifiers) directly with the manager
Fabio Wang (JIRA)
jira-events at lists.jboss.org
Thu Oct 22 09:27:05 EDT 2009
'Default' event observer doesn't get notified when firing events (with qualifiers) directly with the manager
------------------------------------------------------------------------------------------------------------
Key: WELD-226
URL: https://jira.jboss.org/jira/browse/WELD-226
Project: Weld
Issue Type: Bug
Components: Events
Affects Versions: 1.0.0.CR1
Environment: Apache Tomcat 6.0.20
Reporter: Fabio Wang
An observer with this signature:
observe(@Observes XEvent event) {...}
is not notified when an event is fired like this:
manager.fireEvent(new XEvent(), new AnyLiteralQualifier(), new AnyLiteralQualifier2(), ...);
If the observer specifies any of the LiteralQualifiers (or any subset of them, except the empty one), then it's notified.
However, if fired like this:
manager.fireEvent(new XEvent(), new DefaultLiteral(), new AnyLiteralQualifier(), new AnyLiteralQualifier2(), ...);
with the DefaultLiteral among the qualifiers, then it works as expected.
Firing an event with an Event<XEvent> also works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list