[jbosstools-issues] [JBoss JIRA] (JBIDE-9904) CDIProject.findObservedEvents(IParameter) should return Injection Points for dependent projects
Viacheslav Kabanovich (Resolved) (JIRA)
jira-events at lists.jboss.org
Thu Oct 20 20:27:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viacheslav Kabanovich resolved JBIDE-9904.
------------------------------------------
Resolution: Done
> CDIProject.findObservedEvents(IParameter) should return Injection Points for dependent projects
> -----------------------------------------------------------------------------------------------
>
> Key: JBIDE-9904
> URL: https://issues.jboss.org/browse/JBIDE-9904
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: CDI
> Reporter: Daniel Azarov
> Assignee: Viacheslav Kabanovich
> Fix For: 3.3.0.Beta1
>
>
> EXECUTE: Create two CDI projects: ProjectA and ProjectB. ProjectB depends on ProjectA.
> EXECUTE: Create interface in ProjectA:
> {code}
> public interface BaseDecoratedInterface {
> }
> {code}
> EXECUTE: Create a bean in ProjectA:
> {code}
> import javax.enterprise.event.Observes;
> public class CDIBeanTest {
> public void method(@Observes BaseDecoratedInterface event) {
>
> }
> }
> {code}
> EXECUTE: Create another bean in ProjectB:
> {code}
> import javax.enterprise.event.Event;
> import javax.inject.Inject;
> public class TestBean implements BaseDecoratedInterface{
> @Inject
> Event<TestBean> event;
> }
> {code}
> EXECUTE: Open CDIBeanTest in Java Editor, point mouse to 'method' method and press Ctrl
> ASSERT: There should be "Open CDI Event TestBean.event" menu item in OpenOn window
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list