Details
-
Feature Request
-
Resolution: Done
-
Major
-
None
-
New OpenOn functionality has been added for the s:Inject Seam tag. When this tag is used, a user can now Ctrl+Click on the tag to see a list of beans that can be injected.
-
Documented as Feature Request
Description
EXECUTE: Create CDI project with Seam Config support
EXECUTE: Create org.example.Report class:
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"; } }
EXECUTE: Add the following code to seam-beans.xml:
<?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>
EXECUTE: Ctrl+Click on <s:Inject/>
ASSERT: The list of all the eligible beans appears.