Interface JAXBContextFinder
-
- All Known Implementing Classes:
AbstractJAXBContextFinder
,XmlJAXBContextFinder
public interface JAXBContextFinder
- Version:
- $Revision: 1 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.xml.bind.JAXBContext
createContext(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.Class... classes)
javax.xml.bind.JAXBContext
findCacheContext(javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] paraAnnotations, java.lang.Class... classes)
This method creates a JAXBContext from a collection of classes.javax.xml.bind.JAXBContext
findCachedContext(java.lang.Class type, javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] parameterAnnotations)
This method with find a JAXBContext for one type.javax.xml.bind.JAXBContext
findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] paraAnnotations, java.lang.Class... classes)
This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e.
-
-
-
Method Detail
-
findCachedContext
javax.xml.bind.JAXBContext findCachedContext(java.lang.Class type, javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] parameterAnnotations) throws javax.xml.bind.JAXBException
This method with find a JAXBContext for one type. The user can override the cache by defining a ContextResolverfor the given media type. - Parameters:
type
-mediaType
-parameterAnnotations
-- Returns:
- Throws:
javax.xml.bind.JAXBException
-
findCacheContext
javax.xml.bind.JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] paraAnnotations, java.lang.Class... classes) throws javax.xml.bind.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
-paraAnnotations
-classes
-- Returns:
- Throws:
javax.xml.bind.JAXBException
-
findCacheXmlTypeContext
javax.xml.bind.JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType, java.lang.annotation.Annotation[] paraAnnotations, java.lang.Class... classes) throws javax.xml.bind.JAXBException
This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e. from xjc)- Parameters:
mediaType
-paraAnnotations
-packages
-- Returns:
- Throws:
javax.xml.bind.JAXBException
-
createContext
javax.xml.bind.JAXBContext createContext(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.Class... classes) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-