[
https://issues.jboss.org/browse/CDI-4?page=com.atlassian.jira.plugin.syst...
]
Antonio Goncalves commented on CDI-4:
-------------------------------------
And now that we have {{@Priority}}, can't we just use it ?
{code}
public class MyBean
public void myFirstObserverInPriority(@Observes @Priority(1000) MyEvent event) { ... }
}
public class MyBean
public void mySecondObserverInPriority(@Observes @Priority(42) MyEvent event) { ... }
}
{code}
Need a way to provide ordering for Event observers
--------------------------------------------------
Key: CDI-4
URL:
https://issues.jboss.org/browse/CDI-4
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Events, Portable Extensions
Affects Versions: 1.0
Environment: All
Reporter: Lincoln Baxter III
Assignee: Pete Muir
Fix For: 2.0 (discussion)
There needs to be a way to specify some kind of ordering for Event observers.
Understandably, this is somewhat counter-intuitive to the general concept of observing an
event, but there is going to be need for this in an upcoming JBoss project. While it can
be done manually, it might be nice to have a built-in API.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)