users@jersey.java.net

Configuration of JAXB un/marshalling

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 07 Aug 2008 17:26:09 +0200

Hi,

It is now possible to configure JAXB un/marshalling.

You can use a ContextResolver<Marshaller> and
ContextResolver<Unmarshaller> instead of ContextResolver<JAXBContext>.

In addition it is now possible to scope a resolver by media type, for
example:

   @Provider
   @Produces("application/xml")
   public class MyContextResolver
       implements ContextResolver<Unmarshaller> {
     ...
   }

will only get used if the media type for unmarshalling using JAXB is
"application/xml".

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109