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  javax.xml.bind.JAXBContext createContextObject(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.Class... classes)
           
 javax.xml.bind.JAXBContext findCacheContext(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, MediaType mediaType, java.lang.annotation.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 javax.xml.bind.JAXBContext findCachedContext(java.lang.Class type,
                                                    MediaType mediaType,
                                                    java.lang.annotation.Annotation[] parameterAnnotations)
                                             throws javax.xml.bind.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:
javax.xml.bind.JAXBException

createContextObject

protected javax.xml.bind.JAXBContext createContextObject(java.lang.annotation.Annotation[] parameterAnnotations,
                                                         java.lang.Class... classes)
                                                  throws javax.xml.bind.JAXBException
Specified by:
createContextObject in class AbstractJAXBContextFinder
Throws:
javax.xml.bind.JAXBException

findCacheContext

public javax.xml.bind.JAXBContext findCacheContext(MediaType mediaType,
                                                   java.lang.annotation.Annotation[] paraAnnotations,
                                                   java.lang.Class... classes)
                                            throws javax.xml.bind.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:
javax.xml.bind.JAXBException


Copyright © 2010. All Rights Reserved.