@Provider public class JsonJAXBContextFinder extends AbstractJAXBContextFinder implements ContextResolver<JAXBContextFinder>
AbstractJAXBContextFinder.CacheKey
OBJECT_FACTORY_NAME, providers
Constructor and Description |
---|
JsonJAXBContextFinder() |
Modifier and Type | Method and Description |
---|---|
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.
|
createContext, createXmlTypeContext, findDefaultObjectFactoryClass, findProvidedJAXBContext, getContext, getPackageName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
protected JAXBContext createContextObject(Annotation[] annotations, Class... classes) throws JAXBException
createContextObject
in class AbstractJAXBContextFinder
JAXBException
protected JAXBContext createContextObject(Annotation[] annotations, String contextPath) throws JAXBException
createContextObject
in class AbstractJAXBContextFinder
JAXBException
public JAXBContext findCacheXmlTypeContext(MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
JAXBContextFinder
findCacheXmlTypeContext
in interface JAXBContextFinder
JAXBException
public JAXBContext findCachedContext(Class type, MediaType mediaType, Annotation[] annotations) throws JAXBException
JAXBContextFinder
findCachedContext
in interface JAXBContextFinder
JAXBException
public JAXBContext findCacheContext(MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
JAXBContextFinder
findCacheContext
in interface JAXBContextFinder
JAXBException
protected JAXBContext find(Class<?> type, MediaType mediaType, ConcurrentHashMap<Class<?>,JAXBContext> cache, Mapped mapped, BadgerFish badger) throws JAXBException
JAXBException
Copyright © 2018 JBoss by Red Hat. All rights reserved.