Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5094

Deprecate org.infinispan.protostream.Message interface and introduce a more sensible way of handling unknown fields

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Beta1
    • None
    • Remote Querying
    • None

      org.infinispan.protostream.Message mechanism for supporting unknown fields is a bit too intrusive because it forces users to implement our interface in their domain model classes.

      A better approach would be to have a similar interface implemented by the marshaller object instead.

      public interface UnknownFieldSetHandler<T> {
      
         UnknownFieldSet getUnknownFieldSet(T message);
      
         void setUnknownFieldSet(T message, UnknownFieldSet unknownFieldSet);
      }
      
      

              anistor Adrian Nistor (Inactive)
              anistor Adrian Nistor (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: