[
https://issues.jboss.org/browse/JBIDE-14765?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich updated JBIDE-14765:
------------------------------------------
Description:
See
http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html
1. Import test project
jbosstools-javaee/cdi/tests/org.jboss.tools.cdi.core.test/projects/weld1.1
2. Open Java source file src/test/TestExcluded.java and src/META-INF/beans.xml
Check satisfied and unsatisfied dependencies:
- @Inject Bean1 bean1 - is unsatisfied (has marker 'No bean is eligible for
injection')
because beans.xml contains <weld:exclude name="exclude.p1.Bean1"/>
- @Inject Bean2 bean2 - is satisfied (there is open-on for injected bean Bean2)
- @Inject Bean3 bean3 - is unsatisfied
because of <weld:exclude name="exclude.p2.*"/>
- @Inject Bean4 bean4 - is satisfied
because package "exclude.p2.p3" is not excluded by <weld:exclude
name="exclude.p2.*"/>
- @Inject Bean5 bean5 and @Inject Bean6 bean6 are both unsatisfied
because of <weld:exclude name="exclude.p4.**"> which is active as all
restrictions weld:if-class-available are fulfilled
- @Inject Bean7 bean7 - is satisfied
because <weld:exclude name="exclude.p6.**"> is inactive.
was:
See
http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html
1. Import test project
jbosstools-javaee/cdi/tests/org.jboss.tools.cdi.core.test/projects/weld1.1
2. Open Java source file src/test/TestExcluded.java and src/META-INF/beans.xml
Check satisfied and unsatisfied dependencies:
@Inject Bean1 bean1; - is unsatisfied (has marker 'No bean is eligible for
injection')
because beans.xml contains
Support <weld:exclude>
----------------------
Key: JBIDE-14765
URL:
https://issues.jboss.org/browse/JBIDE-14765
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: CDI extensions
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Labels: new_and_noteworthy
Fix For: 4.2.0.Alpha1
See
http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html
1. Import test project
jbosstools-javaee/cdi/tests/org.jboss.tools.cdi.core.test/projects/weld1.1
2. Open Java source file src/test/TestExcluded.java and src/META-INF/beans.xml
Check satisfied and unsatisfied dependencies:
- @Inject Bean1 bean1 - is unsatisfied (has marker 'No bean is eligible for
injection')
because beans.xml contains <weld:exclude name="exclude.p1.Bean1"/>
- @Inject Bean2 bean2 - is satisfied (there is open-on for injected bean Bean2)
- @Inject Bean3 bean3 - is unsatisfied
because of <weld:exclude name="exclude.p2.*"/>
- @Inject Bean4 bean4 - is satisfied
because package "exclude.p2.p3" is not excluded by <weld:exclude
name="exclude.p2.*"/>
- @Inject Bean5 bean5 and @Inject Bean6 bean6 are both unsatisfied
because of <weld:exclude name="exclude.p4.**"> which is active as all
restrictions weld:if-class-available are fulfilled
- @Inject Bean7 bean7 - is satisfied
because <weld:exclude name="exclude.p6.**"> is inactive.
--
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