Interface JAXBContextFinder
- All Known Implementing Classes:
AbstractJAXBContextFinder,XmlJAXBContextFinder
public interface JAXBContextFinder
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Annotation[] parameterAnnotations, Class... classes) findCacheContext(MediaType mediaType, Annotation[] paraAnnotations, Class... classes) This method creates a JAXBContext from a collection of classes.findCachedContext(Class type, MediaType mediaType, Annotation[] parameterAnnotations) This method with find a JAXBContext for one type.findCacheXmlTypeContext(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. from xjc).
-
Method Details
-
findCachedContext
JAXBContext findCachedContext(Class type, MediaType mediaType, Annotation[] parameterAnnotations) throws 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:
JAXBException- jaxb exception
-
findCacheContext
JAXBContext findCacheContext(MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException This 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:
JAXBException- jaxb exception
-
findCacheXmlTypeContext
JAXBContext findCacheXmlTypeContext(MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException This 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:
JAXBException- jaxb exception
-
createContext
- Throws:
JAXBException
-