Hi,
if I understand correctly, unless I annotate a resource class with
@Singleton, it's going to
be created on a per-request basis, then discarded. Is that correct?
If it is, doesn't it introduces a performance penalty?
If all of my methods on my resource class are thread-safe, then going
with a singleton
might yield better performance.
Any thoughts? :)
Thanks,
Zoltan