[weld-dev] [jsr-299-eg] Updated spec with @BeanTypes and clarification of @New

Gavin King gavin.king at gmail.com
Mon Oct 19 20:04:32 EDT 2009


On Mon, Oct 19, 2009 at 7:55 PM, Roberto Chinnici
<Roberto.Chinnici at sun.com> wrote:

>>> JSR-330 doesn't treat anything as a bean, because it only defines DI
>>> annotations.
>>> The platform spec (EE.5.19) says that "support for JSR-330 annotations
>>> is conditional to their being used by a class which is part of a bean
>>> deployment
>>> archive". So there is a conflict.

Note that section 1.2.1 of the 299 spec says:

"In the Java EE 6 environment, all component classes supporting
injection, as defined by the Java EE 6 platform specification, may
inject beans via the dependency injection service."

Also see the section 5.6 preamble, which is even more explicit.

So, yes, there is a conflict. The EE spec mentions a limitation which
299 says explicitly does not exist :-)


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


More information about the weld-dev mailing list