Class JAXBContextResolver

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>

@Singleton @Provider public class JAXBContextResolver extends Object implements javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>
  • Constructor Details

    • JAXBContextResolver

      public JAXBContextResolver() throws Exception
      Throws:
      Exception
    • JAXBContextResolver

      @Inject public JAXBContextResolver(@Named("conf") org.apache.hadoop.conf.Configuration conf) throws Exception
      Throws:
      Exception
  • Method Details

    • getContext

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