Class JAXBContextResolver

java.lang.Object
com.peterphi.std.guice.restclient.resteasy.impl.JAXBContextResolver
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>

@Provider @Produces("application/xml") public class JAXBContextResolver extends Object implements javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>
Provides JAX-RS with JAXBContext instances acquired through JAXBSerialiserFactory
  • Constructor Details

  • Method Details

    • getContext

      public javax.xml.bind.JAXBContext getContext(Class<?> type)
      Specified by:
      getContext in interface javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>