EXECUTE: Create CDI project with Seam Config support
EXECUTE: Add the following files to the project:
<?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:Resource> <s:Produces/> <r:SalesQualifier/> <value>Text</value> </r:Resource> </beans>
package org.example.reports; import javax.inject.Inject; public class Report { public @Inject @SalesQualifier Resource path; }
package org.example.reports; public class Resource { }
EXECUTE: Ctrl+Click on public @Inject @SalesQualifier Resource path;
FAILURE: There is "Open Resource in beans.xml at line 6.
ASSERT: There is "Open Resource in beans.xml at line 7.