Re: [weld-dev] CDI and @Singleton

2013-11-22 Thread Martin Kouba
Antoine, I think the Weld 2.x behaviour is correct per the spec. GlobalRepositoryImpl is not a passivation capable dependency (@Singleton is not a normal scope)... M Dne 22.11.2013 11:54, Antoine Sabot-Durand napsal(a): In my experience, Weld 1.1.x supported @Singleton, Weld 2.x don’t support

Re: [weld-dev] CDI and @Singleton

2013-11-22 Thread Antoine Sabot-Durand
I don’t totally agree on your point Martin : @Dependent scope is not a normal scope as well but I can inject a dependent scope bean in a normal scope bean. I don’t say it’s a bug since the spec seems to be a bit blur on the subject. I wanted just to stress that 1. Singleton don’t behave like

Re: [weld-dev] CDI and @Singleton

2013-11-22 Thread Jozef Hartinger
Yes, it should. Can you point me to the example? On 11/22/2013 03:38 PM, Bill Burke wrote: Arun Gupta has a JAX-RS example using @Singleton. Resteasy first tries to delegate to a CDI beanmanager to create the resource instance before it relies on a default mechanism. Should the BeanManager

Re: [weld-dev] CDI and @Singleton

2013-11-22 Thread Martin Kouba
Dne 22.11.2013 15:37, Antoine Sabot-Durand napsal(a): I don’t totally agree on your point Martin : @Dependent scope is not a normal scope as well but I can inject a dependent scope bean in a normal scope bean. Yep, but it must be passivation capable - this is explicitly written in the spec,