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

Common implicit type support for MicroProfile Config

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 4.25.0.AM1
    • 4.23.0.Final
    • quarkus
    • None
    • Sprint #221 July 2022, Sprint #222 July 2022
    • 8
    • ---

      MicroProfile Config supports automatic converters.

      https://download.eclipse.org/microprofile/microprofile-config-3.0.1/microprofile-config-spec-3.0.1.html#_automatic_converters

      This is an essential feature required for MicroServices using java.net.URI/java.net.URL. This works because they own a public constructor accepting a single String like new URL(String).

      Basic types like String, Numbers, and Booleans are currently supported in JBoss Tools. But using an injection like this:

       

      @Inject
      @ConfigProperty(name = "service.location")
      URI serviceLocation;
      

       

      will result in a warning

       

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

       

       

              jmaury@redhat.com Jeff MAURY
              minh.do@paluno.uni-due.de Tran Minh Do (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: