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

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Aug 16 19:46:26 EDT 2013


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

Viacheslav Kabanovich updated JBIDE-15351:
------------------------------------------

    Description: 
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.

  was:
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.


    
> 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: Feature Request
>          Components: CDI
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             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 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 jbosstools-issues mailing list