[jsr339-experts] Re: [jax-rs-spec users] More allowable component types for DynamicFeature?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 20 Feb 2013 14:48:34 +0100

The ContextResolver is a global concept, not bound to a method. Unless I'm missing something.


On Feb 19, 2013, at 6:54 PM, Bill Burke <bburke_at_redhat.com> wrote:

> DynamicFeature only allows you to register filter and interceptors. I can see somebody also wanting to register a ContextResolver per method, or even a specific MBR/MBW.
> For example:
> @PrettyPrint
> @GET
> @Produces("application/xml")
> public MyJaxb get() {...}
> @PrettyPrint would trigger an addition of a JAXBContext conext resolver that set the appropriate settings for that context.
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com