Add a general-purpose Contextualizable
interface for all handlers to support
#9
Labels
Contextualizable
interface for all handlers to support
#9
(or, if need be, more than one)
Currently a small set of handlers can be "contextualized": that is, called with context within Object Graph, as specified by
Property
for which handler is related. This set mostly consists of serializers and deserializers.But there are many other handlers, especially ones added via annotations, that do not get a chance to change their behavior based on context. It seems quite doable to allow use of an add-on interface like, say,
Contextualizable
that would allow (re)configuration in this way.One interface may or may not be doable, due to:
DeserializationContext
vsSerializerProvider
) -- although, they are both subtypes ofDatabindContext
so maybe this is not a fundamental problem.JavaType
?The text was updated successfully, but these errors were encountered: