Skip to content

Change the way BeanDescription passed during deserializer construction to use Supplier #5094

@cowtowncoder

Description

@cowtowncoder

To support lazy introspection of BasicBeanDescription for common cases (or more specifically, often avoid it altogether), it makes sense to pass Supplier<BeanDescription> instead of BeanDescription.
Supplier will then just call introspection first time, and cache (memoize) it for further access.

The most obvious place that needs changing is Deserializers but code in BasicDeserializerFactory and BeanDeserializerFactory needs changes too.

And after databind changes, many/most modules as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions