Package org.infinispan.protostream.impl

Examples of org.infinispan.protostream.impl.SerializationContextImpl


* @author anistor@redhat.com
*/
public class ProtobufUtil {

   public static SerializationContext newSerializationContext() {
      return new SerializationContextImpl();
   }
View Full Code Here


* @author anistor@redhat.com
*/
public class ProtobufUtil {

   public static SerializationContext newSerializationContext() {
      return new SerializationContextImpl();
   }
View Full Code Here

* @author anistor@redhat.com
*/
public class ProtobufUtil {

   public static SerializationContext newSerializationContext() {
      return new SerializationContextImpl();
   }
View Full Code Here

   public static SerializationContext newSerializationContext() {
      return newSerializationContext(new ConfigurationBuilder().build());
   }

   public static SerializationContext newSerializationContext(Configuration configuration) {
      SerializationContextImpl serializationContext = new SerializationContextImpl(configuration);

      try {
         serializationContext.registerProtofile(WRAPPING_DEFINITIONS_RES);
      } catch (IOException e) {
         throw new RuntimeException("Failed to initialize serialization context", e);
      } catch (Descriptors.DescriptorValidationException e) {
         throw new RuntimeException("Failed to initialize serialization context", e);
      }

      serializationContext.registerMarshaller(new WrappedMessageMarshaller());

      return serializationContext;
   }
View Full Code Here

* @author anistor@redhat.com
*/
public class ProtobufUtil {

   public static SerializationContext newSerializationContext() {
      return new SerializationContextImpl();
   }
View Full Code Here

   public static SerializationContext newSerializationContext() {
      return newSerializationContext(new ConfigurationBuilder().build());
   }

   public static SerializationContext newSerializationContext(Configuration configuration) {
      SerializationContextImpl serializationContext = new SerializationContextImpl(configuration);

      try {
         serializationContext.registerProtoFiles(WRAPPING_DEFINITIONS_RES);
      } catch (IOException | DescriptorParserException e) {
         throw new RuntimeException("Failed to initialize serialization context", e);
      }

      serializationContext.registerMarshaller(new WrappedMessageMarshaller());

      return serializationContext;
   }
View Full Code Here

   public static SerializationContext newSerializationContext() {
      return newSerializationContext(new ConfigurationBuilder().build());
   }

   public static SerializationContext newSerializationContext(Configuration configuration) {
      SerializationContextImpl serializationContext = new SerializationContextImpl(configuration);

      try {
         serializationContext.registerProtofiles(WRAPPING_DEFINITIONS_RES);
      } catch (IOException | DescriptorParserException e) {
         throw new RuntimeException("Failed to initialize serialization context", e);
      }

      serializationContext.registerMarshaller(new WrappedMessageMarshaller());

      return serializationContext;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.protostream.impl.SerializationContextImpl

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.