Package org.jboss.wsf.spi.binding

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


   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

*/
public abstract class ComplexTypeSerializer extends SerializerSupport
{
   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

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

      try {
         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

*/
public abstract class ComplexTypeSerializer extends SerializerSupport
{
   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

   {
      //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

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

   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

      jaxbCustomization.put(JAXBBindingCustomization.DEFAULT_NAMESPACE_REMAP, "http://org.jboss.bindingCustomization");
      endpoint.addAttachment(BindingCustomization.class, jaxbCustomization);
      endpoint.setState(EndpointState.STARTED);

      // read a single customization
      BindingCustomization knownCustomization = endpoint.getAttachment(BindingCustomization.class);
      assertNotNull(knownCustomization);

      // however the iteratoion should be unmodifiable
      try
      {
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.binding.BindingCustomization

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.