Examples of AddressMarshaller


Examples of org.infinispan.client.hotrod.protostream.domain.marshallers.AddressMarshaller

   private SerializationContext initSerializationContext() throws IOException, Descriptors.DescriptorValidationException {
      SerializationContext ctx = ProtostreamMarshaller.getSerializationContext();
      ctx.registerProtofile("/bank.protobin");
      ctx.registerMarshaller(User.class, new UserMarshaller());
      ctx.registerEnumEncoder(User.Gender.class, new GenderEncoder());
      ctx.registerMarshaller(Address.class, new AddressMarshaller());
      ctx.registerMarshaller(Account.class, new AccountMarshaller());
      ctx.registerMarshaller(Transaction.class, new TransactionMarshaller());
      return ctx;
   }
View Full Code Here

Examples of org.infinispan.objectfilter.test.model.AddressMarshaller

   @Before
   public void setUp() throws Exception {
      serCtx = ProtobufUtil.newSerializationContext(new ConfigurationBuilder().build());
      serCtx.registerProtofile(PROTOBUF_RES);
      serCtx.registerMarshaller(new AddressMarshaller());
      serCtx.registerMarshaller(new PhoneNumberMarshaller());
      serCtx.registerMarshaller(new PersonMarshaller());
   }
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.