On 29/07/13 12:48, John Baker wrote:
I can only determine the parameter type / method by the message body, so
I guess I need a generic "put" method with an object, and use the
provider to create the correct object, before using an if instanceof in
the method.
May be you can use a custom provider which will have "@Context Providers
providers;" injected - your provider will read IS, do the checks to
determine the type, restore IS and then ask 'providers' to find the
right provider, or if you know that it is always JAXB for ex, then
simply delegate to JAXBElementProvider after the actual type has been
determined, it will be simpler
Cheers, Sergey