[webbeans-dev] Fwd: Draft

Gavin King gavin.king at gmail.com
Tue May 26 14:29:43 EDT 2009


Guys, please take notice of this draft:

* Clint, I made some changes to the SPI, hope it's not too disruptive!
* Pete, check the stuff about dependent objects, please, I want to
know that it's not still broken


---------- Forwarded message ----------
From: Gavin King <gavin.king at gmail.com>
Date: Tue, May 26, 2009 at 11:28 AM
Subject: Draft
To: Java Community Process JSR #299 Expert List <JSR-299-EG at jcp.org>


OK, I did some work over the long weekend:

Extension SPI
+++++++++++
Now has a more consistently layered architecture, and accommodates
session beans properly. This involved:

* splitting Producer out of InjectionTarget and adding Listener
* adding SessionBean and BeanClass (containing common operations of
SessionBean and ManagedBean)
* adding setInjectionTarget() / setProducer() / setListener() on XxxxxBeans
* adding getXxxxBean() to ProcessXxxxxBean()

I think this is a big improvement, even though it involves a couple of
extra interfaces, but see for yourself :-)

Dependent object destruction
++++++++++++++++++++++

I've also included my proposal for fixing dependent object
destruction. The proposed changes are in the following sections:

* 5.5.2,
* 6.1 - 6.2
* 6.4.1-6.4.3

This is a significant change to SPIs (6.1-6.2) and a slight change to
user-visible behavior (5.5.2), so *please* review this thoroughly. I
do not enjoy making a change like this so late in the process.

Conversation exceptions
+++++++++++++++++++
I've added NonexistentConversationException and
BusyConversationException in 6.7.4. Please review.

@Observes
+++++++++

Finally, I've rolled in the proposed changes to @Observes. Please
check that you're OK with this.

--
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JSR-299-20090526.pdf
Type: application/pdf
Size: 561022 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/weld-dev/attachments/20090526/f1bbfd8c/attachment.pdf 


More information about the weld-dev mailing list