Skip to content

(2.7) Consider adding method setDefaultUseWrapper in XmlMapper #156

@cowtowncoder

Description

@cowtowncoder

Currently the only way to configure default setting of "use wrapper element for Lists" is via XmlModule.
This is because actual setting needs to be propagated to AnnotationIntrospector implementation.

But since introspector may be changed after the fact (and, if we choose to, can actually make setting in introspector mutable), it may be possible to expose this via XmlMapper as well; even if not quite as efficiently. This may be more usable for users, however, especially if mapper is injected as a dependency, and thereby adding such option makes sense, it is not necessarily fully redundant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions