[infinispan-issues] [JBoss JIRA] (IPROTO-56) Dynamic entity support in MarshallerProvider

Gustavo Fernandes (Jira) issues at jboss.org
Mon Oct 22 06:30:00 EDT 2018


     [ https://issues.jboss.org/browse/IPROTO-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gustavo Fernandes reassigned IPROTO-56:
---------------------------------------

    Assignee: Gustavo Fernandes


> Dynamic entity support in MarshallerProvider
> --------------------------------------------
>
>                 Key: IPROTO-56
>                 URL: https://issues.jboss.org/browse/IPROTO-56
>             Project: Infinispan ProtoStream
>          Issue Type: Bug
>            Reporter: Gustavo Fernandes
>            Assignee: Gustavo Fernandes
>            Priority: Major
>
> The use case is a class that describe the entity. This class contains a 'type' and a list of properties. MarshallerProvider is used to associate a type with a marshaller that uses this 'type' to understand the fields and data types to read/write the stream.
> The type of the entity is contained in the entity itself, and when reading from the stream, this type is used to figure out the fields to read. During writes, though, the type is not involved so it's not possible to use the same strategy. 
> Attached is a unit test to illustrate the situation. This is not necessarily a bug, it may be possible to achieve the usage of Dynamic Entities under other circumstances, or maybe the API needs to be extended.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list