[infinispan-issues] [JBoss JIRA] (ISPN-5094) Deprecate org.infinispan.protostream.Message interface and introduce a more sensible way of handling unknown fields
Adrian Nistor (JIRA)
issues at jboss.org
Wed Dec 17 07:50:29 EST 2014
Adrian Nistor created ISPN-5094:
-----------------------------------
Summary: Deprecate org.infinispan.protostream.Message interface and introduce a more sensible way of handling unknown fields
Key: ISPN-5094
URL: https://issues.jboss.org/browse/ISPN-5094
Project: Infinispan
Issue Type: Feature Request
Components: Remote Querying
Reporter: Adrian Nistor
Assignee: Adrian Nistor
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.
{code}
public interface UnknownFieldSetHandler<T> {
UnknownFieldSet getUnknownFieldSet(T message);
void setUnknownFieldSet(T message, UnknownFieldSet unknownFieldSet);
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the infinispan-issues
mailing list