[weld-issues] [JBoss JIRA] Updated: (WELD-226) 'Default' event observer doesn't get notified when firing events (with qualifiers) directly with the manager
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Oct 28 09:47:05 EDT 2009
[ https://jira.jboss.org/jira/browse/WELD-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WELD-226:
---------------------------
Fix Version/s: 1.0.0.CR2
Description:
An observer with this signature:
observe(@Observes XEvent event) {...}
is not notified when an event is fired like this:
manager.fireEvent(new XEvent(), new Qualifier1(), new Qualifier2(), ...);
If the observer specifies any of the Qualifiers (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 Qualifier1(), new Qualifier2(), ...);
with the DefaultLiteral among the qualifiers, then it works as expected.
Firing an event with an Event<XEvent> also works.
was:
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.
> '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
> Fix For: 1.0.0.CR2
>
>
> An observer with this signature:
> observe(@Observes XEvent event) {...}
> is not notified when an event is fired like this:
> manager.fireEvent(new XEvent(), new Qualifier1(), new Qualifier2(), ...);
> If the observer specifies any of the Qualifiers (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 Qualifier1(), new Qualifier2(), ...);
> 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