[
https://issues.jboss.org/browse/JBIDE-9110?page=com.atlassian.jira.plugin...
]
Viacheslav Kabanovich commented on JBIDE-9110:
----------------------------------------------
Your case is that of virtual field producer. I think we do not need separate issue for it,
it is just a particular case of beans defined in seam config xml.
Now, all supported cases are in class Injections of test project CDIConfigTest in
org.jboss.tools.cdi.seam.config.test plugin.
Injections.java:
{code}
package org.jboss.beans.injection;
import javax.inject.Inject;
import org.jboss.beans.test04.MyBean5;
import org.jboss.beans.test04.MyQualifier;
import org.jboss.beans.test04.MyType3;
import org.jboss.beans.test05.MyType1;
public class Injections {
/**
* Class bean defined in seam-config.xml
*/
@Inject MyBean5 b5;
/**
* Virtual field producer bean defined in seam-config.xml
*/
@Inject @org.jboss.beans.test06.MyQualifier("one") String s;
/**
* Method producer bean defined in seam-config.xml
*/
@Inject @org.jboss.beans.test05.MyQualifier MyType1 t1;
/**
* Field producer bean defined in seam-config.xml
*/
@Inject @MyQualifier(kind="kind-04-3") MyType3 t3;
}
{code}
seam-beans.xml:
{code}
<?xml version="1.0"?>
<beans
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="urn:java:ee"
xmlns:test01="urn:java:org.jboss.beans.test01"
xmlns:test02="urn:java:org.jboss.beans.test02"
xmlns:test03="urn:java:org.jboss.beans.test03"
xmlns:test04="urn:java:org.jboss.beans.test04"
xmlns:test05="urn:java:org.jboss.beans.test05"
xmlns:test06="urn:java:org.jboss.beans.test06"
xmlns:inj01="urn:java:org.jboss.beans.injection.test01"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://jboss.org/schema/cdi/beans_1_0.xsd">
<test04:MyBean5> <!-- Class bean injected into Injections.b5 --!>
<s:replaces/>
<test04:myType5>
<s:Inject/>
<test04:MyQualifier kind="kind-04-5-a"/>
</test04:myType5>
</test04:MyBean5>
<s:String> <!-- Virtual producer field injected into Injections.s --!>
<s:Produces/>
<test06:MyQualifier>one</test06:MyQualifier>
</s:String>
<test05:MyBean1>
<test05:createType> <!-- Producer method injected into Injections.t1 --!>
<s:Produces/>
<test05:MyQualifier/>
<s:parameters>
<test05:MyType1>
<s:Named>jdko</s:Named>
</test05:MyType1>
</s:parameters>
</test05:createType>
</test05:MyBean1>
<test04:MyBean3>
<s:modifies/>
<test04:myType3> <!-- Producer field injected into Injections.t3 --!>
<s:Produces/>
</test04:myType3>
</test04:MyBean3>
</beans>
{code}
Open On at @Inject for beans declared in Seam Config XML
--------------------------------------------------------
Key: JBIDE-9110
URL:
https://issues.jboss.org/browse/JBIDE-9110
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M1
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Labels: new_and_noteworthy
Fix For: 3.3.0.M2
EXECUTE: Define in beans.xml (seam-beans.xml) bean according to Seam Configuration
specification.
EXECUTE: Add to a java class injection point resolving to that bean.
ASSERT: Open On at the injection point has an option that opens beans.xml and selects the
bean definition.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira