[webbeans-dev] Re: Rough draft proposal for resource injection

Gavin King gavin at hibernate.org
Thu Jan 8 12:53:53 EST 2009


On Fri, Jan 9, 2009 at 4:38 AM, Scott Ferguson <ferg at caucho.com> wrote:

> First, this capability should be implemented as a general Bridge defined in
> javax.webbeans.spi.Bridge and define the JavaEE capabilities in terms of the
> underlying Bridge.  (Similar in logic to Bean but a different point in the
> configuration lifecycle.)  That would improve modularity and allow an
> eventual migration of the Bridge ownership to the individual JavaEE specs in
> a later version.

Hrm, I don't get your comment about configuration lifecycle. Surely
this Bridge would just be a subtype of Bean?

I don't understand what we need it for.

I feel like Bean already provides sufficient pluggability...


> Second, the JavaEE annotation types should be defined in their own namespace
> for modularity and consistency, not the WebBeans namespace.
>
> <xsql:DataSource xmlns:xsql="urn:java:javax.sql">
>  <ann:Resource xmlns:ann="urn:java:javax.annotation">
>     ...
>  </ann:...>
>
> <my:Foo xmlns:my="urn:java:com.foo.my">
>  <ejb:EJB xmlns:ejb="urn:java:javax.ejb">
>
> <jms:Queue xmlns:jms="urn:java:javax.jms">
>  ...

I'm OK with that if others are.



-- 
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