Interface JAXBContextFinder
-
- All Known Implementing Classes:
AbstractJAXBContextFinder,FastinfoSetJAXBContextFinder,XmlJAXBContextFinder
public interface JAXBContextFinder- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.xml.bind.JAXBContextcreateContext(Annotation[] parameterAnnotations, Class... classes)jakarta.xml.bind.JAXBContextfindCacheContext(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes)This method creates a JAXBContext from a collection of classes.jakarta.xml.bind.JAXBContextfindCachedContext(Class type, jakarta.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations)This method with find a JAXBContext for one type.jakarta.xml.bind.JAXBContextfindCacheXmlTypeContext(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes)This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e.
-
-
-
Method Detail
-
findCachedContext
jakarta.xml.bind.JAXBContext findCachedContext(Class type, jakarta.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations) throws jakarta.xml.bind.JAXBException
This method with find a JAXBContext for one type. The user can override the cache by defining a ContextResolver<JAXBContext> for the given media type.- Parameters:
type- typemediaType- media typeparameterAnnotations- annotations- Returns:
JAXBContext- Throws:
jakarta.xml.bind.JAXBException- jaxb exception
-
findCacheContext
jakarta.xml.bind.JAXBContext findCacheContext(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws jakarta.xml.bind.JAXBExceptionThis method creates a JAXBContext from a collection of classes. Unlike the other findCachedContext() method, the user cannot override the JAXBContext created.- Parameters:
mediaType- media typeparaAnnotations- annotationsclasses- classes- Returns:
JAXBContext- Throws:
jakarta.xml.bind.JAXBException- jaxb exception
-
findCacheXmlTypeContext
jakarta.xml.bind.JAXBContext findCacheXmlTypeContext(jakarta.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws jakarta.xml.bind.JAXBExceptionThis method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e. from xjc).- Parameters:
mediaType- media typeparaAnnotations- annotationsclasses- classes- Returns:
JAXBContext- Throws:
jakarta.xml.bind.JAXBException- jaxb exception
-
createContext
jakarta.xml.bind.JAXBContext createContext(Annotation[] parameterAnnotations, Class... classes) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
-