[webbeans-dev] @New
by Pete Muir
Since the change in the spec defining that there is a new bean for
every bean, we lost the language that disallows:
@New @SomeOtherBinding Foo foo;
AFAICT it still makes sense to disallow this. So, should that language
be there?
We also lost the language that disallows specific declaration of a
Bean as having @New as a binding type.
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
15 years, 7 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
15 years, 7 months
[webbeans-dev] JSR299 TCK beta1
by Pete Muir
All,
I'm pleased to say we have reached the first milestone in the JSR299
TCK. You can download the distro here: http://repository.jboss.org/maven2/org/jboss/jsr299/tck/parent/1.0.0.BETA...
Some stats:
* we have identified all assertions from Chapters 1, 2, 3, 4, 5, 6, 7,
8 leaving chapters 8, 11, and Appendix A (Chapter 10, Appendix B and
Appendix C contain signature info only).
* so far we have identified 1070 assertions, of which 459 are tested
using 402 tests. This is 43% of assertions.
* Of the 402 tests, 381 can be run standalone, and 21 require a full
EE environment. All can be run in an EE environment.
We are currently using these frameworks to aid testing:
* TestNG
* HtmlUnit
* Apache HttpClient
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
15 years, 8 months
[webbeans-dev] SimpleBean.create
by Peter Royle
Hi,
I've noticed that if I do something stupid in one of my bean's
constructors (a NPE for example ;) the exception is being buried by
SimpleBean.create which has 'trys' and 'finallys' but no catch. I assume
there's a good reason for not rethrowing the exception here (what is it
by the way?), but could we maybe log it?
Cheers,
Pete.
15 years, 9 months
[webbeans-dev] Activities
by Pete Muir
Section 11.6 says
> If a bean registered with a child activity has the bean type and all
> bindings of some injection point of some bean registered
> with a direct or indirect parent activity, a DeploymentException is
> throw by the container at deployment time.
but nothing else talks about deployment time in that section. Maybe
this should be "when addBean() is called"...
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
15 years, 9 months