Examples of BindingCustomization


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

   {
      // initialize jaxb context cache
      if ("true".equalsIgnoreCase(System.getProperty(Constants.EAGER_INITIALIZE_JAXB_CONTEXT_CACHE)))
      {
         log.debug("Initializing JAXBContext cache...");
         BindingCustomization bindingCustomization = null;
         if (this instanceof ServerEndpointMetaData)
         {
            bindingCustomization = ((ServerEndpointMetaData)this).getEndpoint().getAttachment(BindingCustomization.class);
         }
         try
View Full Code Here

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

{
   public JAXBContext createContext(Class[] clazzes) throws WSException
   {
      try
      {
         BindingCustomization customization = getCustomization();
         if(null == customization)
            return JAXBContext.newInstance(clazzes);
         else
            return JAXBContext.newInstance(clazzes, customization);
      }
View Full Code Here

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

      return createContext(new Class[] {clazz});
   }

   private BindingCustomization getCustomization()
   {
      BindingCustomization customization = null;

      CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
      if(msgContext!=null) // may not be available anytime
      {
         Iterator<BindingCustomization> it = msgContext.getEndpointMetaData().getBindingCustomizations().iterator();
         while(it.hasNext())
         {
            BindingCustomization current = it.next();
            if(current instanceof JAXBBindingCustomization)
            {
               customization = current;
               break;
            }
View Full Code Here

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

   {
      // initialize jaxb context cache
      if ("true".equalsIgnoreCase(System.getProperty(Constants.EAGER_INITIALIZE_JAXB_CONTEXT_CACHE)))
      {
         log.debug("Initializing JAXBContext cache...");
         BindingCustomization bindingCustomization = null;
         if (this instanceof ServerEndpointMetaData)
         {
            bindingCustomization = ((ServerEndpointMetaData)this).getEndpoint().getAttachment(BindingCustomization.class);
         }
         try
View Full Code Here

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

   {
      //initialize jaxb context cache
      if ("true".equalsIgnoreCase(System.getProperty(Constants.EAGER_INITIALIZE_JAXB_CONTEXT_CACHE)))
      {
         log.debug("Initializing JAXBContext cache...");
         BindingCustomization bindingCustomization = null;
         if (this instanceof ServerEndpointMetaData)
         {
            bindingCustomization = ((ServerEndpointMetaData)this).getEndpoint().getAttachment(BindingCustomization.class);
         }
         try
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
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.