Resteasy JAXB Provider 2.3.6.Final-redhat-1

org.jboss.resteasy.plugins.providers.jaxb
Class XmlJAXBContextFinder

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
      extended by org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<JAXBContextFinder>, JAXBContextFinder

@Provider
public class XmlJAXBContextFinder
extends AbstractJAXBContextFinder
implements javax.ws.rs.ext.ContextResolver<JAXBContextFinder>

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
AbstractJAXBContextFinder.CacheKey
 
Field Summary
 
Fields inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
OBJECT_FACTORY_NAME, providers
 
Constructor Summary
XmlJAXBContextFinder()
           
 
Method Summary
protected  JAXBContext createContextObject(Annotation[] parameterAnnotations, Class... classes)
           
protected  JAXBContext createContextObject(Annotation[] parameterAnnotations, String contextPath)
           
 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.
 
Methods inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
createContext, createXmlTypeContext, findDefaultObjectFactoryClass, findProvidedJAXBContext, getContext, getPackageName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.ext.ContextResolver
getContext
 

Constructor Detail

XmlJAXBContextFinder

public XmlJAXBContextFinder()
Method Detail

findCachedContext

public JAXBContext findCachedContext(Class type,
                                     javax.ws.rs.core.MediaType mediaType,
                                     Annotation[] parameterAnnotations)
                              throws JAXBException
Description copied from interface: JAXBContextFinder
This method with find a JAXBContext for one type. The user can override the cache by defining a ContextResolver for the given media type.

Specified by:
findCachedContext in interface JAXBContextFinder
Returns:
Throws:
JAXBException

createContextObject

protected JAXBContext createContextObject(Annotation[] parameterAnnotations,
                                          Class... classes)
                                   throws JAXBException
Specified by:
createContextObject in class AbstractJAXBContextFinder
Throws:
JAXBException

createContextObject

protected JAXBContext createContextObject(Annotation[] parameterAnnotations,
                                          String contextPath)
                                   throws JAXBException
Specified by:
createContextObject in class AbstractJAXBContextFinder
Throws:
JAXBException

findCacheContext

public JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType,
                                    Annotation[] paraAnnotations,
                                    Class... classes)
                             throws JAXBException
Description copied from interface: JAXBContextFinder
This method creates a JAXBContext from a collection of classes. Unlike the other findCachedContext() method, the user cannot override the JAXBContext created.

Specified by:
findCacheContext in interface JAXBContextFinder
Returns:
Throws:
JAXBException

findCacheXmlTypeContext

public JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType,
                                           Annotation[] paraAnnotations,
                                           Class... classes)
                                    throws JAXBException
Description copied from interface: JAXBContextFinder
This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e. from xjc)

Specified by:
findCacheXmlTypeContext in interface JAXBContextFinder
Returns:
Throws:
JAXBException

Resteasy JAXB Provider 2.3.6.Final-redhat-1

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