Class DefaultJAXBContextCache

  • All Implemented Interfaces:
    JAXBContextCache

    public class DefaultJAXBContextCache
    extends java.lang.Object
    implements JAXBContextCache
    Default implementation of the JAXB context cache. Caches JAXBContexts for a JAXB class and Schemas for URLs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.bind.JAXBContext resolveContext​(java.lang.Class jaxbClass)
      Gets a JAXB context object for the given JAXB class.
      javax.xml.validation.Schema resolveSchema​(java.net.URL url)
      Gets a XML Schema object for the given URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultJAXBContextCache

        public DefaultJAXBContextCache()
    • Method Detail

      • resolveContext

        public javax.xml.bind.JAXBContext resolveContext​(java.lang.Class jaxbClass)
                                                  throws javax.xml.bind.JAXBException
        Description copied from interface: JAXBContextCache
        Gets a JAXB context object for the given JAXB class.
        Specified by:
        resolveContext in interface JAXBContextCache
        Throws:
        javax.xml.bind.JAXBException
      • resolveSchema

        public javax.xml.validation.Schema resolveSchema​(java.net.URL url)
                                                  throws org.xml.sax.SAXException,
                                                         java.io.IOException
        Description copied from interface: JAXBContextCache
        Gets a XML Schema object for the given URL.
        Specified by:
        resolveSchema in interface JAXBContextCache
        Throws:
        org.xml.sax.SAXException
        java.io.IOException