Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Property with default value from Supplier #369

Open
ljacqu opened this issue Aug 30, 2023 · 0 comments
Open

Property with default value from Supplier #369

ljacqu opened this issue Aug 30, 2023 · 0 comments
Labels
architecture Difficult architectural questions

Comments

@ljacqu
Copy link
Member

ljacqu commented Aug 30, 2023

Especially for beans it might be interesting to only have the default value be created if it's really needed, i.e. to supply a Supplier for the default value.

Downsides:

  • fail-fast kind of breaks since a default value might be null from a Supplier and integrators don't notice it until it becomes relevant
  • breaking change

Related:

@ljacqu ljacqu added the architecture Difficult architectural questions label Aug 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
architecture Difficult architectural questions
Development

No branches or pull requests

1 participant