Examples of findCachedContext()


Examples of org.jboss.resteasy.plugins.providers.jaxb.JAXBContextFinder.findCachedContext()

         ContextResolver<JAXBContextFinder> resolver = getProviderFactory().getContextResolver(JAXBContextFinder.class, mediaType);
         JAXBContextFinder finder = resolver.getContext(Child.class);
         JAXBContext ctx = finder.findCachedContext(Child.class, mediaType, null);


         JAXBContext ctx2 = finder.findCachedContext(Child.class, mediaType, null);

         Assert.assertTrue(ctx == ctx2);
      }
   }
View Full Code Here

Examples of org.jboss.resteasy.plugins.providers.jaxb.JAXBContextFinder.findCachedContext()

      }
      Class baseType = Types.getCollectionBaseType(type, genericType);
      entityStream.write('[');
      try
      {
         JAXBContext ctx = finder.findCachedContext(baseType, mediaType, annotations);
         Marshaller marshaller = ctx.createMarshaller();
         marshaller = AbstractJAXBProvider.decorateMarshaller(baseType, annotations, mediaType, marshaller);
         if (type.isArray())
         {
            Object[] array = (Object[]) entry;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.