[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-9483) CDI extensions are not loaded if they are declared in a source folder.
Viacheslav Kabanovich (JIRA)
jira-events at lists.jboss.org
Tue Aug 16 13:09:17 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viacheslav Kabanovich resolved JBIDE-9483.
------------------------------------------
Resolution: Done
> CDI extensions are not loaded if they are declared in a source folder.
> ----------------------------------------------------------------------
>
> Key: JBIDE-9483
> URL: https://issues.jboss.org/browse/JBIDE-9483
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi extensions
> Affects Versions: 3.3.0.M3
> Reporter: Alexey Kazakov
> Assignee: Viacheslav Kabanovich
> Fix For: 3.3.0.M3
>
>
> CDI extensions are loaded only if they are declared in jar files. We should load them from source folders too.
> EXECUTE: Create two CDI projects: Project A and B. Project A should be included in the class path of project B.
> EXECUTE: Create a file A/<sourceFolder>/META-INF/services/javax.enterprise.inject.spi.Extension
> EXECUTE: Add the following text to the service file:
> {code}
> org.jboss.seam.servlet.ServletExtension
> {code}
> EXECUTE: Create any bean in project B and add the following injection point to the bean:
> {code}
> @Inject @RequestParam("id")
> private String bookId;
> {code}
> ASSERT: bookId is not marked as unsatisfied dependency. <- Failure
> EXECUTE: Remove A/<sourceFolder>/META-INF/services/javax.enterprise.inject.spi.Extension
> EXECUTE: Build the projects.
> ASSERT: bookId is marked as unsatisfied dependency.
--
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