Package org.jboss.resteasy.annotations.providers.jaxb.json

Examples of org.jboss.resteasy.annotations.providers.jaxb.json.BadgerFish


   private ConcurrentHashMap<CacheKey, JAXBContext> badgerCollectionCache = new ConcurrentHashMap<CacheKey, JAXBContext>();

   protected JAXBContext createContextObject(Annotation[] annotations, Class... classes) throws JAXBException
   {
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         return new BadgerContext(classes);
      }
      else
View Full Code Here


   }

   public JAXBContext findCachedContext(Class type, MediaType mediaType, Annotation[] annotations) throws JAXBException
   {
      Mapped mapped = FindAnnotation.findAnnotation(type, annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(type, annotations, BadgerFish.class);
      if (badger != null)
      {
         return find(type, mediaType, badgerCache, mapped, badger);

      }
View Full Code Here

   public JAXBContext findCacheContext(MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
   {
      CacheKey key = new CacheKey(classes);
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         JAXBContext ctx = badgerCollectionCache.get(key);
         if (ctx != null) return ctx;
         ctx = new BadgerContext(classes);
View Full Code Here

   private ConcurrentHashMap<CacheKey, JAXBContext> badgerXmlTypeCollectionCache = new ConcurrentHashMap<CacheKey, JAXBContext>();

   protected JAXBContext createContextObject(Annotation[] annotations, Class... classes) throws JAXBException
   {
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         return new BadgerContext(classes);
      }
      else
View Full Code Here

   @Override
   protected JAXBContext createContextObject(Annotation[] annotations, String contextPath) throws JAXBException
   {
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         return new BadgerContext(contextPath);
      }
      else
View Full Code Here

   @Override
   public JAXBContext findCacheXmlTypeContext(MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
   {
      CacheKey key = new CacheKey(classes);
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         JAXBContext ctx = badgerXmlTypeCollectionCache.get(key);
         if (ctx != null) return ctx;
         ctx = createXmlTypeContext(annotations, classes);
View Full Code Here

   }

   public JAXBContext findCachedContext(Class type, MediaType mediaType, Annotation[] annotations) throws JAXBException
   {
      Mapped mapped = FindAnnotation.findAnnotation(type, annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(type, annotations, BadgerFish.class);
      if (badger != null)
      {
         return find(type, mediaType, badgerCache, mapped, badger);

      }
View Full Code Here

   public JAXBContext findCacheContext(MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
   {
      CacheKey key = new CacheKey(classes);
      Mapped mapped = FindAnnotation.findAnnotation(annotations, Mapped.class);
      BadgerFish badger = FindAnnotation.findAnnotation(annotations, BadgerFish.class);
      if (badger != null)
      {
         JAXBContext ctx = badgerCollectionCache.get(key);
         if (ctx != null) return ctx;
         ctx = new BadgerContext(classes);
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.annotations.providers.jaxb.json.BadgerFish

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.