Class AbstractJAXBContextFinder

    • Field Detail

      • providers

        @Context
        protected jakarta.ws.rs.ext.Providers providers
    • Constructor Detail

      • AbstractJAXBContextFinder

        public AbstractJAXBContextFinder()
    • Method Detail

      • findProvidedJAXBContext

        public jakarta.xml.bind.JAXBContext findProvidedJAXBContext​(Class<?> type,
                                                                    jakarta.ws.rs.core.MediaType mediaType)
                                                             throws jakarta.xml.bind.JAXBException
        Throws:
        jakarta.xml.bind.JAXBException
      • getPackageName

        public static String getPackageName​(Class<?> type)
      • findDefaultObjectFactoryClass

        public static Class<?> findDefaultObjectFactoryClass​(Class<?> type)
      • createContextObject

        protected abstract jakarta.xml.bind.JAXBContext createContextObject​(Annotation[] parameterAnnotations,
                                                                            Class... classes)
                                                                     throws jakarta.xml.bind.JAXBException
        Throws:
        jakarta.xml.bind.JAXBException
      • createContextObject

        protected abstract jakarta.xml.bind.JAXBContext createContextObject​(Annotation[] parameterAnnotations,
                                                                            String contextPath)
                                                                     throws jakarta.xml.bind.JAXBException
        Throws:
        jakarta.xml.bind.JAXBException
      • createXmlTypeContext

        public jakarta.xml.bind.JAXBContext createXmlTypeContext​(Annotation[] parameterAnnotations,
                                                                 Class... classes)
                                                          throws jakarta.xml.bind.JAXBException
        Throws:
        jakarta.xml.bind.JAXBException
      • createContext

        public jakarta.xml.bind.JAXBContext createContext​(Annotation[] parameterAnnotations,
                                                          Class... classes)
                                                   throws jakarta.xml.bind.JAXBException
        Specified by:
        createContext in interface JAXBContextFinder
        Throws:
        jakarta.xml.bind.JAXBException