Resteasy JAXB Provider 2.3.6.Final-redhat-1

org.jboss.resteasy.plugins.providers.jaxb
Interface JAXBContextFinder

All Known Implementing Classes:
AbstractJAXBContextFinder, XmlJAXBContextFinder

public interface JAXBContextFinder

Version:
$Revision: 1 $
Author:
Bill Burke

Method Summary
 JAXBContext createContext(Annotation[] parameterAnnotations, Class... classes)
           
 JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes)
          This method creates a JAXBContext from a collection of classes.
 JAXBContext findCachedContext(Class type, javax.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations)
          This method with find a JAXBContext for one type.
 JAXBContext findCacheXmlTypeContext(javax.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

JAXBContext findCachedContext(Class type,
                              javax.ws.rs.core.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 for the given media type.

Parameters:
type -
mediaType -
parameterAnnotations -
Returns:
Throws:
JAXBException

findCacheContext

JAXBContext findCacheContext(javax.ws.rs.core.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 -
paraAnnotations -
classes -
Returns:
Throws:
JAXBException

findCacheXmlTypeContext

JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.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 -
paraAnnotations -
packages -
Returns:
Throws:
JAXBException

createContext

JAXBContext createContext(Annotation[] parameterAnnotations,
                          Class... classes)
                          throws JAXBException
Throws:
JAXBException

Resteasy JAXB Provider 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.