[cdi-dev] [JBoss JIRA] Commented: (CDI-144) Support Injection into Entity Listeners

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue Jul 26 00:39:23 EDT 2011

    [ https://issues.jboss.org/browse/CDI-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616392#comment-12616392 ] 

Stuart Douglas commented on CDI-144:

Injection will only hurt performance if the container creates one listener instance per load operation, which seems kinda silly. The spec does not actually specify the lifecycle of entity listeners, but as they are stateless I think most providers would only create 1 instance. As injection happens at instance creation time and not at entity listener call time I don't really see how injection into the listener would hurt performance. 

> Support Injection into Entity Listeners
> ---------------------------------------
>                 Key: CDI-144
>                 URL: https://issues.jboss.org/browse/CDI-144
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Cody Lerum
> It would be very convenient if CDI was available inside JPA Entity Listeners. 

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list