I want to inject a custom object type into resource classes using
@Context. The custom object would be instantiated in an servlet filter
upstream of Jersey and placed in a request attribute.
I've seen an example of writing a Provider to extract the Locale from
the HttpRequestContext and was trying to do something similar to extract
our custom object. However since HttpRequestContext doesn't expose the
request attributes I don't see a way to make this work.
Are there any alternative approaches?
Joe