users@jersey.java.net

Singleton resource filter

From: Yong Yuan <yycslab_at_gmail.com>
Date: Thu, 27 Aug 2009 11:58:19 -0700

Hi,
I'd like to collect some stats in a filter across all incoming requests for
certain resources. In that case, is it possible to apply @Singleton
annotation to a resource filter, or should I simply keep my stats in a
singleton object, or a resource filter will be a singleton per resource as
long as the resource is a singleton?

Thanks,