Examples of BindingCustomization


Examples of org.jboss.wsf.spi.binding.BindingCustomization

         if(introsConfigStream != null)
         {
            JaxbIntros jaxbIntros = IntroductionsConfigParser.parseConfig(introsConfigStream);
            IntroductionsAnnotationReader annotationReader = new IntroductionsAnnotationReader(jaxbIntros);
            String defaultNamespace = jaxbIntros.getDefaultNamespace();
            BindingCustomization jaxbCustomizations = new JAXBBindingCustomization();

            jaxbCustomizations.put(JAXBRIContext.ANNOTATION_READER, annotationReader);
            if(defaultNamespace != null) {
               jaxbCustomizations.put(JAXBRIContext.DEFAULT_NAMESPACE_REMAP, defaultNamespace);
            }

            // ServerEndpointMetaData#getBindingCustomization becomes the consumer later on
            for(Endpoint endpoint : deployment.getService().getEndpoints())
            {
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

         JAXBContextFactory factory = JAXBContextFactory.newInstance();

         // JAXBIntros may mofiy the WSDL being generated
         // only true for server side invocation, tooling (WSProvide) doesnt support this
         BindingCustomization bindingCustomization = null;
         if (epMetaData instanceof ServerEndpointMetaData)
         {
            Endpoint endpoint = ((ServerEndpointMetaData)epMetaData).getEndpoint();
            bindingCustomization = endpoint != null ? endpoint.getAttachment(BindingCustomization.class) : null;
         }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

   private JAXBContext getJAXBContext(Class[] types){
      JAXBContextCache cache = JAXBContextCache.getContextCache();
      JAXBContext context = cache.get(types);
      if(null==context)
      {
         BindingCustomization bindingCustomization = getBindingCustomization();
         context = JAXBContextFactory.newInstance().createContext(types, bindingCustomization);
         cache.add(types, context);
      }
      return context;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

      JAXBContextCache cache = JAXBContextCache.getContextCache();
      JAXBContext context = cache.get(types);
      if(null==context)
      {
         BindingCustomization bindingCustomization = getBindingCustomization();
         context = JAXBContextFactory.newInstance().createContext(types, bindingCustomization);
         cache.add(types, context);
      }
      return context;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

   public JAXBContext createContext(Class[] clazzes) throws WSException
   {
      try
      {
         BindingCustomization bcust = getCustomization();

         JAXBContext jaxbCtx;
         if (null == bcust)
            jaxbCtx = JAXBContext.newInstance(clazzes);
         else
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

public abstract class ComplexTypeDeserializer extends DeserializerSupport
{

   protected BindingCustomization getBindingCustomization()
   {
      BindingCustomization bindingCustomization = null;
      EndpointMetaData epMetaData = MessageContextAssociation.peekMessageContext().getEndpointMetaData();
      if(epMetaData instanceof ServerEndpointMetaData)
      {
         bindingCustomization = ((ServerEndpointMetaData)epMetaData).getEndpoint().getAttachment(BindingCustomization.class);
      }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

/*    */         }
/*    */       }
/*    */     }
/*    */     finally
/*    */     {
/*    */       BindingCustomization jaxbCustomizations;
/* 87 */       if (introsConfigStream != null)
/*    */         try {
/* 89 */           introsConfigStream.close();
/*    */         } catch (IOException e) {
/* 91 */           logger.error("[" + deployment.getService().getContextRoot() + "] Error closing JAXB Introductions Configurations stream ", e);
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

/*  920 */       if (log.isDebugEnabled()) {
/*  921 */         log.debug("JAXBContext [types=" + this.javaTypes + ",tns=" + targetNS + "]");
/*      */       }
/*  923 */       JAXBContextFactory factory = JAXBContextFactory.newInstance();
/*      */
/*  928 */       BindingCustomization bindingCustomization = null;
/*  929 */       if ((epMetaData instanceof ServerEndpointMetaData))
/*      */       {
/*  931 */         Endpoint endpoint = ((ServerEndpointMetaData)epMetaData).getEndpoint();
/*  932 */         bindingCustomization = endpoint != null ? (BindingCustomization)endpoint.getAttachment(BindingCustomization.class) : null;
/*      */       }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

/*     */   {
/*  99 */     JAXBContextCache cache = JAXBContextCache.getContextCache();
/* 100 */     JAXBContext context = cache.get(types);
/* 101 */     if (null == context)
/*     */     {
/* 103 */       BindingCustomization bindingCustomization = getBindingCustomization();
/* 104 */       context = JAXBContextFactory.newInstance().createContext(types, bindingCustomization);
/* 105 */       cache.add(types, context);
/*     */     }
/* 107 */     return context;
/*     */   }
View Full Code Here

Examples of org.jboss.wsf.spi.binding.BindingCustomization

/*     */   {
/*  97 */     JAXBContextCache cache = JAXBContextCache.getContextCache();
/*  98 */     JAXBContext context = cache.get(types);
/*  99 */     if (null == context)
/*     */     {
/* 101 */       BindingCustomization bindingCustomization = getBindingCustomization();
/* 102 */       context = JAXBContextFactory.newInstance().createContext(types, bindingCustomization);
/* 103 */       cache.add(types, context);
/*     */     }
/* 105 */     return context;
/*     */   }
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.