Class JAXBContextCache.CachedContextAndSchemas

java.lang.Object
org.apache.cxf.common.jaxb.JAXBContextCache.CachedContextAndSchemas
Enclosing class:
JAXBContextCache

public static final class JAXBContextCache.CachedContextAndSchemas extends Object
Return holder of the context, classes, etc... Do NOT hold onto these strongly as that can lock the JAXBContext and Set objects into memory. It preferred to grab the context and classes (if needed) from this object immediately after the call to getCachedContextAndSchemas and then discard it. The main purpose of this class is to hold onto the context/set strongly until the caller has a chance to copy those into a place where they can hold onto it strongly as needed.
  • Method Details

    • getContext

      public jakarta.xml.bind.JAXBContext getContext()
    • getClasses

      public Set<Class<?>> getClasses()
    • getSchemas

      public Collection<DOMSource> getSchemas()
    • setSchemas

      public void setSchemas(Collection<DOMSource> schemas)