Class 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:
    Serialized Form
    • Constructor Detail

      • AbstractYamlObjectConverter

        public AbstractYamlObjectConverter()
    • Method Detail

      • 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>