users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Injecting ResourceInfo into Filters

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
Date: Thu, 8 Nov 2012 01:01:17 +0100

Hmm, I am still confused...


The way I am reading the spec and the apidocs, e.g. ResourceInfo class docs:

"An injectable class to access the resource class and resource method matched by the current request. Methods in this class MAY return null if a resource class and method have not been matched, e.g. in a standalone, pre-matching ContainerRequestFilter that was not provided by a post-matching PreMatching."

the canonical use of ResourceInfo seems to be to inject it into a Filter.

Given that filters are application scoped, can someone enlighten me and provide an example where ResourceInfo is injected into a filter?

Jan