[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9187) Seam Config XML: OpenOn for <s:Inject/>
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Thu Jun 16 21:05:23 EDT 2011
Seam Config XML: OpenOn for <s:Inject/>
---------------------------------------
Key: JBIDE-9187
URL: https://issues.jboss.org/browse/JBIDE-9187
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: cdi (jsr-299)
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 3.3.x
EXECUTE: Create CDI project with Seam Config support
EXECUTE: Create org.example.Report class:
{code}
package org.example.reports;
import javax.enterprise.inject.Produces;
public class Report {
public String filename;
public String datasource;
@Produces
public String foo() {
return "1";
}
@Produces
public String foo1() {
return "2";
}
}
{code}
EXECUTE: Add the following code to seam-beans.xml:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="urn:java:ee"
xmlns:r="urn:java:org.example.reports">
<r:Report>
<r:datasource>
<s:Inject/>
</r:datasource>
</r:Report>
</beans>
{code}
EXECUTE: Ctrl+Click on <s:Inject/>
ASSERT: The list of all the eligible beans appears.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list