Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-317

CDI/MP Injection with parameter annotated methods does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 0.4-incubating
    • Extensions
    • None

    Description

      Injection of a configuration value does not work for the following case:

      {{@Inject
      public void setStringValue(@ConfigProperty(name="my.optional.string.property") Optional<String> stringValue)

      { this.stringValue = stringValue; }

      }}

      Reason:

      • The custom extension does not recognize the method since it is checking only on @ConfigProperty on method level (and does ignore parameter level.
      • The producer logic must be checked as well, not sure if it is able to interpret the given InjectionPoint correctly.

      This issue affects CDI injection as well as the Microprofile module.

      Attachments

        Activity

          People

            anatole Anatole Tresch
            anatole Anatole Tresch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: