Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27533

CDI support for MicroProfile Config Qualifiers

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.17.0.Final
    • Fix Version/s: 4.18.0.Final
    • Component/s: cdi
    • Labels:
      None
    • Sprint:
      Sprint #193 Nov 2021
    • Story Points:
      8

      Description

      Wildfly supports MicroProfile 3.3 (MP) officially. The MP Config specification is part of these [1]. This spec allows to inject config, system and environment properties into CDI-managed classes allowing cloud first development by an overwrite system. 

      An example would be shown like this

       

      @Inject
      @ConfigProperty(name = "property.key")
      String value;

       

      Using JBoss Tools you get a warning about its usage with following error message

       

      No bean is eligible for injection to the injection point [JSR-365 §5.2.2]

       

      Thus JBoss Tools does not detect the usage of @ConfigProperty qualifier.

      Possible resolutions would be to

      • ignore @ConfigProperty
      • support @ConfigProperty with default config source provider evaluating System Environments, System Properties and Config File Properties

       

      1. https://github.com/eclipse/microprofile-config

        Attachments

          Activity

            People

            Assignee:
            jeffmaury Jeff MAURY
            Reporter:
            commodis Tran Minh Do
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: