org.jboss.resteasy.plugins.providers.jaxb
Class XmlJAXBContextFinder
java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
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
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 |
XmlJAXBContextFinder
public XmlJAXBContextFinder()
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.