Skip to content

Add Record support #808

@hantsy

Description

@hantsy

Description

As a:

  • Application user/user of the configuration itself
  • API user (application developer)
  • SPI user (container or runtime developer)
  • Specification implementer

...I need to be able to:

Simply bind the properties to record class.

@ConfigProperties
record Range(int min, int max) {

   public Range{
     if(min < max) {
       throw IllegalArgumentExcpetion(...)
     }
   }

}

Scan @ConfigProperties class as CDI beans in Jakarta EE env, and inject it by type safely in other CDI beans

@Inject
Range range;

Metadata

Metadata

Assignees

No one assigned

    Labels

    use case 💡An issue which illustrates a desired use case for the specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions