You can inject UriInfo and then get the resource class instance using its getMatchedResources() method.
Marc.
On Mar 1, 2010, at 8:30 AM, Cemo Koc wrote:
>
> Hi,
>
> I want to dynamically limit my exception mapper with the help of annotations
> on my resources. In an exception mapper is there a way to inject resource in
> which exception is thrown?
>
> Thanks
> --
> View this message in context: http://n2.nabble.com/Injecting-exception-thrown-resource-in-exceptionMapper-tp4654154p4654154.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>