[cdi-dev] [JBoss JIRA] (CDI-560) A bean archive does not have to contain a beans.xml file

Martin Kouba (JIRA) issues at jboss.org
Thu Sep 10 06:55:00 EDT 2015


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

Martin Kouba commented on CDI-560:
----------------------------------

Moreover, an implicit bean archive does not have to contain beans.xml at all:
{quote}
An implicit bean archive is any other archive which contains one or more bean classes with a bean defining annotation as defined in Bean defining annotations.
{quote}

> A bean archive does not have to contain a beans.xml file
> --------------------------------------------------------
>
>                 Key: CDI-560
>                 URL: https://issues.jboss.org/browse/CDI-560
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Concepts
>    Affects Versions: 2.0-EDR1
>         Environment: Section 5.1 Modularity: The library is a bean archive if it contains
> a beans.xml file, as defined in Bean archives. 
> It contradicts with the section 12.1
> An archive which:
>     contains a beans.xml file with the bean-discovery-mode of none, or,
>     contains an extension and no beans.xml file
> is not a bean archive.
> Therefore, an archive with beans.xml is not a bean archive if the bean-discovery-mode = "none".
> I think it is better to be "The library may be a bean archive, as defined in Bean archives."
>            Reporter: Emily Jiang
>            Priority: Minor
>
> Section 5.1 Modularity: The library is a bean archive if it contains
> a beans.xml file, as defined in Bean archives. 
> It contradicts with the section 12.1
> {quote}
> An archive which:
> * contains a beans.xml file with the bean-discovery-mode of none, or,
> * contains an extension and no beans.xml file
> is not a bean archive.
> {quote}
> Therefore, an archive with beans.xml is not a bean archive if the bean-discovery-mode = "none".
> I think it is better to be "The library may be a bean archive, as defined in Bean archives."



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list