• Madhura Bhave's avatar
    Add bindOrCreate for constructor based binding · c6dae576
    Madhura Bhave authored
    Deprecate the existing `BindResult.orElseCreate` method in favor of
    `bindOrCreate` methods on the `Binder`. These new methods allow us to
    implement custom creation logic depending on the type of object being
    bound. Specifically, it allows constructor based binding to create new
    instances that respect the `@DefaultValue` annotations.
    
    Closes gh-17098
    Co-authored-by: 's avatarPhillip Webb <pwebb@pivotal.io>
    c6dae576
Name
Last commit
Last update
..
src Loading commit data...
pom.xml Loading commit data...