Allocate TokenBuffer
instance via context objects (to allow format-specific buffer types)
#2989
Milestone
TokenBuffer
instance via context objects (to allow format-specific buffer types)
#2989
It turns out that buffering of token streams cannot always be done without some format-specific additions. For example:
Collection
typesBut currently databind will explicitly construct format-agnostic
TokenBuffer
, which can support some aspects (native type, object ids) but with added overhead and complexity.It should be relatively easy, however, to (eventually?) allow format modules to override this selection: the way to do that would be to first make allocations of buffer instances go through:
DeserializationContext
(for deserialization)SerializerProvider
(for serialization)and then format module may override one or both as necessary (XML module already overrides both, for example); or, if this becomes more widely necessary, context objects can offer other means of pluggability.
Either way, the first step is to add this one redirection.
The text was updated successfully, but these errors were encountered: