[cdi-dev] [JBoss JIRA] (CDI-344) bean-discovery-mode should be specified

Martin Kouba (JIRA) jira-events at lists.jboss.org
Thu Mar 28 04:56:41 EDT 2013


    [ https://issues.jboss.org/browse/CDI-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763688#comment-12763688 ] 

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


More information about the cdi-dev mailing list