Class JAXBCachedEntry


  • public class JAXBCachedEntry
    extends Object
    This class wraps JAXBContext and is used for simple caching mechanism during Fortress XML processing. The intent is to leave future extension point in case schema validation is needed which prevents handling in cache itself.
    Author:
    Apache Directory Project
    • Constructor Detail

      • JAXBCachedEntry

        public JAXBCachedEntry​(Class type)
                        throws jakarta.xml.bind.JAXBException
        Public constructor requires the entity class to be passed.
        Parameters:
        type - contains reference to object of type class.
        Throws:
        jakarta.xml.bind.JAXBException - thrown in the event new instance cannot be created.
    • Method Detail

      • getCachedClass

        public Class getCachedClass()
        Return the class that is associated with this cached JAXBContext.
        Returns:
        class associated with JAXContext
      • getContext

        public jakarta.xml.bind.JAXBContext getContext()
        Return the JAXBContext object associated with this wrapper class.
        Returns:
        handle to JAXBContext object.