[jbosstools-issues] [JBoss JIRA] (JBIDE-9904) CDIProject.findObservedEvents(IParameter) should return Injection Points for dependent projects

Daniel Azarov (Updated) (JIRA) jira-events at lists.jboss.org
Thu Oct 13 14:44:16 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Azarov updated JBIDE-9904:
---------------------------------

    Description: 
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

    
> 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.M4
>
>
> 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