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:
- ContextResolver<JAXBContextFinder>, JAXBContextFinder
- Direct Known Subclasses:
- FastinfoSetJAXBContextFinder
@Provider
public class XmlJAXBContextFinder
- extends AbstractJAXBContextFinder
- implements 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 |
XmlJAXBContextFinder
public XmlJAXBContextFinder()
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.