[jbosstools-issues] [JBoss JIRA] (JBIDE-15351) Implement bean discovery in explicit and implicit archives

Rastislav Wagner (JIRA) issues at jboss.org
Mon Aug 11 04:32:30 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-15351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rastislav Wagner closed JBIDE-15351.
------------------------------------



verified as a part of JBIDE-13228

> Implement bean discovery in explicit and implicit archives 
> -----------------------------------------------------------
>
>                 Key: JBIDE-15351
>                 URL: https://issues.jboss.org/browse/JBIDE-15351
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: cdi
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>              Labels: new_and_noteworthy
>             Fix For: 4.2.0.Alpha1
>
>
> http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive
> 1. Create CDI 1.1 project.
> 2. Create other CDI 1.1 projects and export them to jars or to class folders,
>    these projects may vary in beans.xml:
>      - no beans.xml
>      - empty beans.xml
>      - beans.xml with 1.0 schema
>      - beans.xml with 1.1 schema and all possible values
>        of bean-discovery-mode attribute ("annotated"/"none"/"all")
> and have classes with and without scope declaration.
> 3. Add these archives to classpath of project (1).
> 4. Create a bean with injections to types defined in the archives.
> 5. Check that injection is satisfied or not according to bean discovery rules given by specification.
> Examples:
> - Archive has no beans.xml: only annotated beans will be resolved;
> - Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
> - Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list