[
https://issues.jboss.org/browse/CDI-344?page=com.atlassian.jira.plugin.sy...
]
Martin Kouba commented on CDI-344:
----------------------------------
First, I think the wording is misleading because bean archives have no version. Only
beans.xml files may have a version.
{quote}
A bean archive with no version has a default bean discovery mode of all.
{quote}
OK - CDI 1.0 beans.xml with bean-discovery-mode of any value should always result in bean
discovery mode of all.
But the sentence:
{quote}
A bean archive with version 1.1 (or later) has a default bean discovery mode of
annotated.
{quote}
does not make sense in the context of the sentence written below:
{quote}
If beans.xml file with version 1.1 is used, the bean-discovery-mode attribute is
required.
{quote}
(default value is always overwritten by user)
What if we say: *explicit archives have always bean discovery mode of all* and *implicit
archives have always bean discovery mode of annotated*?
bean-discovery-mode should be specified
---------------------------------------
Key: CDI-344
URL:
https://issues.jboss.org/browse/CDI-344
Project: CDI Specification Issues
Issue Type: Bug
Affects Versions: 1.1.PFD
Reporter: Jozef Hartinger
Assignee: Pete Muir
Fix For: 1.1.FD
It seems that the only complete source of information about the *bean-discovery-mode*
attribute is the schema file. The specification should better explain the attribute, list
and explain allowed values.
--
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