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:
ContextResolver<JAXBContextFinder>, JAXBContextFinder
Direct Known Subclasses:
FastinfoSetJAXBContextFinder

@Provider
public class XmlJAXBContextFinder
extends AbstractJAXBContextFinder
implements 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)
           
 JAXBContext findCacheContext(MediaType mediaType, Annotation[] paraAnnotations, Class... classes)
          This method creates a JAXBContext from a collection of classes.
 JAXBContext findCachedContext(Class type, MediaType mediaType, Annotation[] parameterAnnotations)
          This method with find a JAXBContext for one type.
 
Methods inherited from class org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
createContext, 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,
                                     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

findCacheContext

public JAXBContext findCacheContext(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


Copyright © 2011. All Rights Reserved.