[jboss-user] [EJB 3.0 Development] - Deferring instance creation/injection to CDI

Marius Bogoevici do-not-reply at jboss.com
Thu Aug 5 11:16:43 EDT 2010


Marius Bogoevici [http://community.jboss.org/people/marius.bogoevici] replied to the discussion

"Deferring instance creation/injection to CDI"

To view the discussion, visit: http://community.jboss.org/message/556088#556088

--------------------------------------------------------------
Restarting the discussion. In summary, what Weld/CDI needs is:

1) EJB defers instance creation to an external component
    - Weld deployer provides the hook for instantiating the  components and will:
             a) invoke the applicable CDI constructor of the EJB class
             b) apply decorators on the EJB
             c) *not* apply interceptors on the EJB - for now, this remains a responsibility of the EJB container

2) EJB container provides a hook for preprocessing interceptors after instantiation. The main reason is that EJB interceptors may be CDI-injected

(note: could we reuse the same mechanism as for EJB instantiation, since it boils down to producing an instance of the class? )

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/556088#556088]

Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100805/9b02f60a/attachment.html 


More information about the jboss-user mailing list