Class JAXBCachedEntry
- java.lang.Object
-
- org.apache.directory.fortress.core.rest.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 Summary
Constructors Constructor Description JAXBCachedEntry(Class type)
Public constructor requires the entity class to be passed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getCachedClass()
Return the class that is associated with this cached JAXBContext.JAXBContext
getContext()
Return the JAXBContext object associated with this wrapper class.
-
-
-
Constructor Detail
-
JAXBCachedEntry
public JAXBCachedEntry(Class type) throws JAXBException
Public constructor requires the entity class to be passed.- Parameters:
type
- contains reference to object of type class.- Throws:
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 JAXBContext getContext()
Return the JAXBContext object associated with this wrapper class.- Returns:
- handle to JAXBContext object.
-
-