[webbeans-dev] Fwd: Major new revision of the specification
by Gavin King
Folks, please take a look through this...
---------- Forwarded message ----------
From: Gavin King <gavin.king(a)gmail.com>
Date: Sat, May 9, 2009 at 7:34 PM
Subject: Re: Major new revision of the specification
To: Java Community Process JSR #299 Expert List <JSR-299-EG(a)jcp.org>
And here's the spec :-)
On Sat, May 9, 2009 at 7:32 PM, Gavin King <gavin.king(a)gmail.com> wrote:
> The attached spec draft aims to address the following criticisms made
> by Sun, IBM and others:
>
> * the the spec is difficult to read and understand
> * that the spec defines too many implementation details
>
> I've made the following major sets of changes:
>
> * redefinition of all semantics without reference to BeanManager
> * separation of material relating to the BeanManager, Bean and
> framework integration into a separate chapter
> * overall reorganization or material
>
> In order to make it possible to define all semantics in words instead
> of code, several new terms were defined:
>
> * injectable reference
> * contextual reference
> * contextual instance
>
> I've also partially written up several proposals from other threads:
>
> * annotation-based event mappings
> * new APIs to simplify implementation of the Bean interface
> * changes to the BeanManager interface
> * enhancement to the Instance interface
> * renamed @Initialized / @Deployed to @AfterBeanDiscovery /
> @AfterDependencyValidation
>
> Overall, I believe that this is a really major improvement, but it
> certainly needs a really thorough review, especially the following
> sections:
>
> * 6.5, 6.4.2
> * 5.4 - 5.6
> * 9.2 - 9.4
>
>
> --
> Gavin King
> gavin.king(a)gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
16 years, 10 months
[webbeans-dev] wb-ri-int & idea
by Ales Justin
WRT webbeans-ri-trunk
My IntelliJ IDEA outlook looks broken.
Looking at the WebBeansBootstrapDeployer it cannot link to parts of
JBoss Deployers,
although they are in the Libraries.
Anyone using IDEA and seeing the same problems after re-running "mvn
idea:idea"?
btw: Pete, why is deployers module depending on ejb module (in pom.xml)?
deployer shouldn't depend on anything, as it runtime delegates things.
16 years, 10 months
[webbeans-dev] jdk6 features creeping in
by Ales Justin
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\projects\web-beans\ri\tests\src\test\java\org\jboss\webbeans\test\unit\xml\javaeepkg\foo\Order.java:[14,17]
cannot find symbol
symbol : class CommonDataSource
location: package javax.sql
C:\projects\web-beans\ri\tests\src\test\java\org\jboss\webbeans\test\unit\xml\javaeepkg\foo\Order.java:[31,44]
cannot find symbol
symbol : class CommonDataSource
location: class org.jboss.webbeans.test.unit.xml.javaeepkg.foo.Order
C:\projects\web-beans\ri\tests\src\test\java\org\jboss\jsr299\tck\tests\implementation\enterprise\lifecycle\EnterpriseBeanLifecycleTest.java:[64,33]
cannot find symbol
symbol : constructor HashSet(java.util.List<java.lang.Class>)
location: class java.util.HashSet<java.lang.Class<?>>
16 years, 10 months
[webbeans-dev] Context.get with mismatched scopes
by David Allen
Hi Gavin,
I was just writing some tests and realized the spec in section 8.1 does
not clearly state what happens if I use a context from one scope and a
bean from a different scope. Should this be a runtime exception?
Example:
@Dependent
public class MyBean {}
...
Bean myBean = manager.resolveByType(MyBean.class).iterator().next();
MyBean myBeanInstance =
manager.getContext(SessionScoped.class).get(myBean);
-------------
David Allen
david.allen(a)acm.org
16 years, 10 months