[MAGNOLIA-8163] Add support to Optional<T> for @ConfigProperty and @ConfigProperties Created: 23/Aug/21  Updated: 27/Aug/21  Resolved: 27/Aug/21

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Task Priority: Neutral
Reporter: Joaquin Alfaro Assignee: Joaquin Alfaro
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: Caching & Purging
Sprint: Cloud Service 16
Story Points: 1

 Description   

Add support to Optional<T> for the annotations @ConfigProperty and @ConfigProperties provided by the implementation of microprofile for Guice.

  • The properties Optional<T> annotated with @ConfigProperty will will be set with Optional.empty when missing the property or defaultValue has no value. Otherwise will be set with the value of the property.
  • The properties Optional<T> annotated with @ConfigProperties will be set with Optional.empty when missing properties prefixed with the prefix of the bean. Otherwise will be set with the value of the property.

Generated at Mon Feb 12 04:30:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.