Ramin Baradari commented on Bug WELD-1484

Yes, this works.

But I would prefer to use @Singleton if possible because of the additional proxy when using @ApplicationScoped.

I don't see what the problem is with using a directly injected singleton. It is even advertised in http://docs.jboss.org/weld/reference/latest/en-US/pdf/weld-reference.pdf section 5.4. and the CDI spec also states that singletons should be passivation capable dependencies.

Also I believe that in Weld SE there is no passivation support out of the box and, as we don't implement it, we therefor don't actually use passivation at all. Hence no managed object will ever be serialized by weld. We are just fighting against the implementation (or specification).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to