• 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
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...