You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that the end-user do not know how to serialize/deserialize after calling supportsRead(MediaType mediaType, Type type) because parameters of MediaType and Type is not passed in serialize() and deSerialize()
Improvement
Pass MediaType and Type in serialize() and deSerialize()
It is easy to do this, but the end-user may need to do the parameters check twice, which is not good for performance.
Remove supportsRead() and supportsWrite()
This would be good for performance but it would be hard to design the serialize() and deSerialize().
The text was updated successfully, but these errors were encountered:
Motivation
Interface spec of
HttpBodySerializer
Problem is that the end-user do not know how to serialize/deserialize after calling
supportsRead(MediaType mediaType, Type type)
because parameters ofMediaType
andType
is not passed inserialize()
anddeSerialize()
Improvement
MediaType
andType
inserialize()
anddeSerialize()
It is easy to do this, but the end-user may need to do the parameters check twice, which is not good for performance.
supportsRead()
andsupportsWrite()
This would be good for performance but it would be hard to design the
serialize()
anddeSerialize()
.The text was updated successfully, but these errors were encountered: