[webbeans-issues] [JBoss JIRA] Commented: (WBRI-329) Move EJB injection to InjectionTarget

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Aug 6 19:06:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/WBRI-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12479392#action_12479392 ] 

Pete Muir commented on WBRI-329:
--------------------------------

Actually, I don't think we need a toggle. Web Beans should know [1] whether a class is one on which it should provide EE-style injection.

In answer to your questions: Web Beans will only ever provide annotation based EE-style injection, so it won't inject bar2. I hope that we can use this to provide injection for contextual session beans as well as non-contextual ejbs; if this is true we don't need the interceptor. I need to work through the implications of this though.

[1] I think this must be via an SPI as POJOs (no annotations) can be defined to be component classes via xml IIRC. In other words, Web Beans would query the EE server to find out whether it should perform EE-style injection or not.

> Move EJB injection to InjectionTarget
> -------------------------------------
>
>                 Key: WBRI-329
>                 URL: https://jira.jboss.org/jira/browse/WBRI-329
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Enterprise Beans, Glassfish integration
>         Environment: 1.0.0.PREVIEW2.SP2 in 7/30/09 GlassFish V3 workspace
>            Reporter: Ken Saks
>             Fix For: 1.0.0.CR1
>
>
> Currently we perform 299 style injection into EJBs via an interceptor, I would prefer to move this to use the InjectionTarget SPI.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list