[infinispan-issues] [JBoss JIRA] (ISPN-11620) Remove EncoderRegistry from DataConversion
Gustavo Fernandes (Jira)
issues at jboss.org
Thu Apr 9 05:33:00 EDT 2020
[ https://issues.redhat.com/browse/ISPN-11620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gustavo Fernandes updated ISPN-11620:
-------------------------------------
Description:
The DataConversion carries an instance of EncodingRegistry, and exports operations that use it internally:
* isConversionSupported(MediaType mediaType)
* convert(Object o, MediaType from, MediaType to)
* convertToRequestFormat(Object o, MediaType contentType)
Those operations should be removed and moved to the EncoderRegistry itself, freeing the DataConversion objects from maintaining an internal reference to the registry. This also solves the issue of static DataContainer objects being used in mulitple nodes in the same JVM keeping reference to this field internally.
was:
The DataConversion carries an instance of EncodingRegistry internally, and exports operations that use it internally:
* isConversionSupported(MediaType mediaType)
* convert(Object o, MediaType from, MediaType to)
* convertToRequestFormat(Object o, MediaType contentType)
Those operations should be removed and moved to the EncoderRegistry itself, freeing the DataConversion objects from maintaining an internal reference to the registry. This also solves the issue of static DataContainer objects being used in mulitple nodes in the same JVM keeping reference to this field internally.
> Remove EncoderRegistry from DataConversion
> -------------------------------------------
>
> Key: ISPN-11620
> URL: https://issues.redhat.com/browse/ISPN-11620
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> The DataConversion carries an instance of EncodingRegistry, and exports operations that use it internally:
> * isConversionSupported(MediaType mediaType)
> * convert(Object o, MediaType from, MediaType to)
> * convertToRequestFormat(Object o, MediaType contentType)
> Those operations should be removed and moved to the EncoderRegistry itself, freeing the DataConversion objects from maintaining an internal reference to the registry. This also solves the issue of static DataContainer objects being used in mulitple nodes in the same JVM keeping reference to this field internally.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list