Class ConfigMappingContext


  • public final class ConfigMappingContext
    extends Object
    A mapping context. This is used by generated classes during configuration mapping, and is released once the configuration mapping has completed.
    • Method Detail

      • getEnclosedField

        public Object getEnclosedField​(Class<?> enclosingType,
                                       String key,
                                       Object enclosingObject)
      • registerEnclosedField

        public void registerEnclosedField​(Class<?> enclosingType,
                                          String key,
                                          Object enclosingObject,
                                          Object value)
      • constructRoot

        public <T> T constructRoot​(Class<T> interfaceType)
      • constructGroup

        public <T> T constructGroup​(Class<T> interfaceType)
      • getValueConverter

        public <T> org.eclipse.microprofile.config.spi.Converter<T> getValueConverter​(Class<?> enclosingType,
                                                                                      String field)
      • getKeyConverter

        public <T> org.eclipse.microprofile.config.spi.Converter<T> getKeyConverter​(Class<?> enclosingType,
                                                                                    String field,
                                                                                    int degree)
      • getConverterInstance

        public <T> org.eclipse.microprofile.config.spi.Converter<T> getConverterInstance​(Class<? extends org.eclipse.microprofile.config.spi.Converter<? extends T>> converterType)
      • applyNamingStrategy

        public String applyNamingStrategy​(String name)
      • createMapWithDefault

        public static <K,​V> Map<K,​V> createMapWithDefault​(V defaultValue)