Jakub Podlesak wrote:
> I think, i need to provide a direct way to set custom properties
> on Marshaller/Unmarshaller without a need to implement a custom
> JAXBContext wrapper.
We need to support ContextResolver for Marshaller/Unmarshaller types.
For the latest API there have been some changes to ContextResolver
(related to enabled resolvers to be scoped by media type). As part of
this implementation i can investigate support for resolving
Marshaller/Unmarshaller.
Paul.
> For the time being i hope the above
> mentioned solution would work for you.
>
> ~Jakub
>
> [1]http://blogs.sun.com/japod/entry/better_json_available_in_jersey
>
> On Mon, Jul 21, 2008 at 02:55:53PM -0700, Tim McCune wrote:
>> As a follow-up to my "how do I specify xml namespace prefixes" question, I'm
>> trying to provide my own XMLJAXBElementProvider that lets me set properties
>> on the Marshaller. I need to replace
>> com.sun.jersey.impl.provider.entity.XMLJAXBElementProvider with this
>> implementation. So far, the only way I've found to do this it to remove
>> META-INF/services/javax.ws.rs.ext.MessageBodyWriter from the jersey jar, so
>> that jersey will find my javax.ws.rs.ext.MessageBodyWriter file instead. Is
>> this the only way to do this? Seems like it should be possible to do
>> something like this without having to build a custom jar.
>>
>> Thanks.
>>
>> --Tim
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109