users@jersey.java.net

_at_Provider: is it inherited?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Mon, 26 Apr 2010 09:28:52 -0400

I would like to place @Provider on an abstract resource class that
also happens to implement ContextResolver and thereby indicate that
all concrete subclasses should be considered to be ContextResolver
providers.

I see that the @Provider interface is not inherited, but often there
are requirements in Java EE-land that require various tools to
consider annotations all the way up the inheritance stack.

So: is @Provider such an exception? If I place it on my abstract
class, does it effectively mark my concrete classes as providers?

Best,
Laird