Interface JAXBContextFinder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      jakarta.xml.bind.JAXBContext createContext​(Annotation[] parameterAnnotations, Class... classes)  
      jakarta.xml.bind.JAXBContext findCacheContext​(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes)
      This method creates a JAXBContext from a collection of classes.
      jakarta.xml.bind.JAXBContext findCachedContext​(Class type, jakarta.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations)
      This method with find a JAXBContext for one type.
      jakarta.xml.bind.JAXBContext findCacheXmlTypeContext​(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes)
      This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e.
    • Method Detail

      • findCachedContext

        jakarta.xml.bind.JAXBContext findCachedContext​(Class type,
                                                       jakarta.ws.rs.core.MediaType mediaType,
                                                       Annotation[] parameterAnnotations)
                                                throws jakarta.xml.bind.JAXBException
        This method with find a JAXBContext for one type. The user can override the cache by defining a ContextResolver<JAXBContext> for the given media type.
        Parameters:
        type - type
        mediaType - media type
        parameterAnnotations - annotations
        Returns:
        JAXBContext
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
      • findCacheContext

        jakarta.xml.bind.JAXBContext findCacheContext​(jakarta.ws.rs.core.MediaType mediaType,
                                                      Annotation[] paraAnnotations,
                                                      Class... classes)
                                               throws jakarta.xml.bind.JAXBException
        This method creates a JAXBContext from a collection of classes. Unlike the other findCachedContext() method, the user cannot override the JAXBContext created.
        Parameters:
        mediaType - media type
        paraAnnotations - annotations
        classes - classes
        Returns:
        JAXBContext
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
      • findCacheXmlTypeContext

        jakarta.xml.bind.JAXBContext findCacheXmlTypeContext​(jakarta.ws.rs.core.MediaType mediaType,
                                                             Annotation[] paraAnnotations,
                                                             Class... classes)
                                                      throws jakarta.xml.bind.JAXBException
        This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e. from xjc).
        Parameters:
        mediaType - media type
        paraAnnotations - annotations
        classes - classes
        Returns:
        JAXBContext
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
      • createContext

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