In Weld SE, @ApplicationScoped should behave like @Singleton, and not be proxied.
I see no reason for this. So far the CDI spec does not define any special rules for Java SE (actually, it does not support SE at all). @ApplicationScoped is a normal scope and should behave like a normal scope (client proxies are required). I think it would be really confusing if we changed this just for Weld SE.
However, feel free to contribute to CDI 2.0. I believe this is one of the topics.
|