I understand how ApplicationScoped
and CDI javax.inject.Singleton
work, and I understand the difference between these two scopes. My app has a lot of beans that don't need serialization, proxies, or decorations, so I am considering switching those from ApplicationScoped
(which works) to javax.inject.Singleton
to improve performance by avoiding proxies.
My question is: Should I in fact make such a change?