Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9187

Seam Config XML: OpenOn for <s:Inject/>

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 3.3.0.M3
    • None
    • cdi
    • 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.

      Attachments

        Activity

          People

            dazarov_jira Daniel Azarov (Inactive)
            alexeykazakov Alexey Kazakov
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: