users@jax-rs-spec.java.net

[jax-rs-spec users] Returning filters/interceptors from getClasses or getSingletons

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Fri, 28 Dec 2012 13:35:14 -0800

6.5.2 says

-- cut here --
Note that returning filters or interceptors from the methods getClasses
or getSingletons in an application subclass will bind them globally only
if they are not decorated with a name binding annotation.
-- cut here --


If filter or interceptor does not have any @NameBinding annotation then
they are globally bound anyway. What is the use case of returning such a
filter from getClasses or getSingletons ?


Thanks,
Arun


-- 
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta