org.jboss.resteasy.plugins.providers.jaxb.json
Class JsonJAXBContextFinder
java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
org.jboss.resteasy.plugins.providers.jaxb.json.JsonJAXBContextFinder
- All Implemented Interfaces:
- ContextResolver<JAXBContextFinder>, JAXBContextFinder
@Provider
public class JsonJAXBContextFinder
- extends AbstractJAXBContextFinder
- implements ContextResolver<JAXBContextFinder>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Method Summary |
protected JAXBContext |
createContextObject(Annotation[] annotations,
Class... classes)
|
protected JAXBContext |
createContextObject(Annotation[] annotations,
String contextPath)
|
protected JAXBContext |
find(Class<?> type,
MediaType mediaType,
ConcurrentHashMap<Class<?>,JAXBContext> cache,
Mapped mapped,
BadgerFish badger)
|
JAXBContext |
findCacheContext(MediaType mediaType,
Annotation[] annotations,
Class... classes)
This method creates a JAXBContext from a collection of classes. |
JAXBContext |
findCachedContext(Class type,
MediaType mediaType,
Annotation[] annotations)
This method with find a JAXBContext for one type. |
JAXBContext |
findCacheXmlTypeContext(MediaType mediaType,
Annotation[] annotations,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonJAXBContextFinder
public JsonJAXBContextFinder()
createContextObject
protected JAXBContext createContextObject(Annotation[] annotations,
Class... classes)
throws JAXBException
- Specified by:
createContextObject
in class AbstractJAXBContextFinder
- Throws:
JAXBException
createContextObject
protected JAXBContext createContextObject(Annotation[] annotations,
String contextPath)
throws JAXBException
- Specified by:
createContextObject
in class AbstractJAXBContextFinder
- Throws:
JAXBException
findCacheXmlTypeContext
public JAXBContext findCacheXmlTypeContext(MediaType mediaType,
Annotation[] annotations,
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
findCachedContext
public JAXBContext findCachedContext(Class type,
MediaType mediaType,
Annotation[] annotations)
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
findCacheContext
public JAXBContext findCacheContext(MediaType mediaType,
Annotation[] annotations,
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
find
protected JAXBContext find(Class<?> type,
MediaType mediaType,
ConcurrentHashMap<Class<?>,JAXBContext> cache,
Mapped mapped,
BadgerFish badger)
throws JAXBException
- Throws:
JAXBException
Copyright © 2012. All Rights Reserved.