Class AbstractYamlObjectConverter<T>

java.lang.Object
io.quarkus.config.yaml.runtime.AbstractYamlObjectConverter<T>
All Implemented Interfaces:
Serializable, org.eclipse.microprofile.config.spi.Converter<T>

public abstract class AbstractYamlObjectConverter<T> extends Object implements org.eclipse.microprofile.config.spi.Converter<T>
This class is used by generated code to support the list of objects use case in @ConfigProperties
See Also:
  • Constructor Details

    • AbstractYamlObjectConverter

      public AbstractYamlObjectConverter()
  • Method Details

    • getClazz

      protected abstract Class<T> getClazz()
    • getFieldNameMap

      protected Map<String,String> getFieldNameMap()
      Contains names of fields that need to be converted from the value that MP-Config has set to the actual name of the field in the class
    • convert

      public T convert(String value)
      Specified by:
      convert in interface org.eclipse.microprofile.config.spi.Converter<T>