Class ConfigProducerUtil

    • Method Detail

      • getValue

        public static <T> T getValue​(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint,
                                     org.eclipse.microprofile.config.Config config)
        Retrieves a converted configuration value from Config.
        Parameters:
        injectionPoint - the InjectionPoint where the configuration value will be injected
        config - the current Config instance.
        Returns:
        the converted configuration value.
      • getValue

        public static <T> T getValue​(String name,
                                     Type type,
                                     String defaultValue,
                                     org.eclipse.microprofile.config.Config config)
        Retrieves a converted configuration value from Config.
        Parameters:
        name - the name of the configuration property.
        type - the Type of the configuration value to convert.
        defaultValue - the default value to use if no configuration value is found.
        config - the current Config instance.
        Returns:
        the converted configuration value.