[
https://issues.jboss.org/browse/CDI-75?page=com.atlassian.jira.plugin.sys...
]
Pete Muir commented on CDI-75:
------------------------------
I would propose implementing this by ANDing any values supplied, and calling out illegal
combinations:
* ALWAYS - legal
* IF_EXISTS - legal
* IF_ACTIVE - legal
* ALWAYS, IF_EXISTS - illegal
* ALWAYS, IF_ACTIVE - illegal
* IF_EXISTS, IF_ACTIVE - legal
* IF_EXISTS, IF_ACTIVE, ALWAYS - illegal
An illegal combination would be a definition error.
Let's also thing about names. IF_ACTIVE is nice (it has a precedent with IF_EXISTS)
however it's not overly accurate (it refers to the context being active), however
IF_EXISTS is the same, it refers to whether an instance of the bean defining the observer
exists.
Clarify what happens to a bean which belongs to inactive when it
observes an event
----------------------------------------------------------------------------------
Key: CDI-75
URL:
https://issues.jboss.org/browse/CDI-75
Project: CDI Specification Issues
Issue Type: Clarification
Components: Events
Affects Versions: 1.0
Reporter: Pete Muir
Assignee: Pete Muir
Fix For: 1.1 (Proposed)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira