Property with default value from Supplier

Open
#369 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java
Domain
tooling

Research direction

Start by reading the existing default-value handling and the related issues #12 and #164. Clarify the API and compatibility implications of accepting a Supplier, including how null results and fail-fast behavior should work; the issue is complete when those decisions are implemented and covered by the relevant tests.

Written by the indexing model from the issue text.

Description

architecture

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:

  • #12
  • #164
Dominant language
Java
Stars
44
Forks
21
Avg merge
2d 2h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AuthMe/ConfigMe

All issues in AuthMe/ConfigMe

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.