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

Marius Bogoevici do-not-reply at jboss.com
Tue Aug 10 16:07:09 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/556722#556722

--------------------------------------------------------------
Could we possibly change the way in which the instantiator instance is handed over to the Ejb3Deployer? That is, moving from creating the instantiator in the appropriate deployer and adding it as an attachment, to registering a BeanMetaData item and letting the MC do the wiring. The latter could be helpful, since for example in the case of Weld integration we need a reference to the BootstrapBean and letting the MC do the wiring would ensure both the dependency injection and proper ordering of components (e.g. EJBs including singletons are not started until the instantiator is ready). 

If the instantiator mechanism is to become more generic and used in other cases, then using the MC would help.

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

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

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/20100810/63d0ccaa/attachment.html 


More information about the jboss-user mailing list