Class JAXBContextWrapper


  • public class JAXBContextWrapper
    extends jakarta.xml.bind.JAXBContext
    A wrapper class around a JAXBContext that enables additional features to the RESTEasy JAXB-based providers.
    Version:
    $Revision:$
    Author:
    Ryan J. McDonough
    • Constructor Detail

      • JAXBContextWrapper

        public JAXBContextWrapper​(jakarta.xml.bind.JAXBContext wrappedContext,
                                  JAXBConfig config)
                           throws jakarta.xml.bind.JAXBException
        Throws:
        jakarta.xml.bind.JAXBException
      • JAXBContextWrapper

        public JAXBContextWrapper​(Class<?>[] classes,
                                  Map<String,​Object> properties,
                                  JAXBConfig config)
                           throws jakarta.xml.bind.JAXBException
        Create a new JAXBContextWrapper.
        Parameters:
        classes - classes
        properties - properties map
        config - jaxb configuration
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
      • JAXBContextWrapper

        public JAXBContextWrapper​(String contextPath,
                                  JAXBConfig config)
                           throws jakarta.xml.bind.JAXBException
        Create a new JAXBContextWrapper.
        Parameters:
        contextPath - context path
        config - jaxb config
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
      • JAXBContextWrapper

        public JAXBContextWrapper​(JAXBConfig config,
                                  Class<?>... classes)
                           throws jakarta.xml.bind.JAXBException
        Create a new JAXBContextWrapper.
        Parameters:
        classes - classes
        config - jaxb config
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
    • Method Detail

      • getSchema

        public Schema getSchema()
        Get the schema.
        Returns:
        the schema.
      • setSchema

        public void setSchema​(Schema schema)
        Set the schema.
        Parameters:
        schema - The schema to set.
      • createBinder

        public jakarta.xml.bind.Binder<Node> createBinder()
        Overrides:
        createBinder in class jakarta.xml.bind.JAXBContext
        Returns:
        Binder
        See Also:
        JAXBContext.createBinder()
      • createBinder

        public <T> jakarta.xml.bind.Binder<T> createBinder​(Class<T> domType)
        Overrides:
        createBinder in class jakarta.xml.bind.JAXBContext
        Type Parameters:
        T - type
        Parameters:
        domType - dom class
        Returns:
        Binder
        See Also:
        JAXBContext.createBinder(java.lang.Class)
      • createJAXBIntrospector

        public jakarta.xml.bind.JAXBIntrospector createJAXBIntrospector()
        Overrides:
        createJAXBIntrospector in class jakarta.xml.bind.JAXBContext
        Returns:
        JAXBIntrospector
        See Also:
        JAXBContext.createJAXBIntrospector()
      • createMarshaller

        public jakarta.xml.bind.Marshaller createMarshaller()
                                                     throws jakarta.xml.bind.JAXBException
        Specified by:
        createMarshaller in class jakarta.xml.bind.JAXBContext
        Returns:
        jaxb marshaller
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
        See Also:
        JAXBContext.createMarshaller()
      • createUnmarshaller

        public jakarta.xml.bind.Unmarshaller createUnmarshaller()
                                                         throws jakarta.xml.bind.JAXBException
        Specified by:
        createUnmarshaller in class jakarta.xml.bind.JAXBContext
        Returns:
        jaxb unmarshaller
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
        See Also:
        JAXBContext.createUnmarshaller()
      • createValidator

        public jakarta.xml.bind.Validator createValidator()
                                                   throws jakarta.xml.bind.JAXBException
        Deprecated.
        See jakarta.xml.bind.JAXBContext#createValidator().
        Specified by:
        createValidator in class jakarta.xml.bind.JAXBContext
        Returns:
        xml validator
        Throws:
        jakarta.xml.bind.JAXBException - jaxb exception
        See Also:
        JAXBContext.createValidator()
      • generateSchema

        public void generateSchema​(jakarta.xml.bind.SchemaOutputResolver outputResolver)
                            throws IOException
        Overrides:
        generateSchema in class jakarta.xml.bind.JAXBContext
        Parameters:
        outputResolver - xml schema resolver
        Throws:
        IOException - if I/O error occurred
        See Also:
        JAXBContext.generateSchema(jakarta.xml.bind.SchemaOutputResolver)