Class ConfigPropertiesConfigMappingHandler

java.lang.Object
io.smallrye.config.microprofile.ConfigPropertiesConfigMappingHandler
All Implemented Interfaces:
io.smallrye.config.ConfigMappingHandler

public final class ConfigPropertiesConfigMappingHandler extends Object implements io.smallrye.config.ConfigMappingHandler
A ConfigMappingHandler for MicroProfile Config @ConfigProperties annotated classes.

Extracts the configuration prefix from ConfigProperties.prefix() and field-level metadata from @ConfigProperty annotations (name and default value).

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.smallrye.config.ConfigMappingHandler

    io.smallrye.config.ConfigMappingHandler.ConfigMappingInterfaceHandler, io.smallrye.config.ConfigMappingHandler.FallbackClassHandler, io.smallrye.config.ConfigMappingHandler.FieldMember, io.smallrye.config.ConfigMappingHandler.Handlers
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getPrefix(Class<?> type)
     
    boolean
    handles(Class<?> type)
     
    boolean
     
    io.smallrye.config.ConfigMappingHandler.FieldMember
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.smallrye.config.ConfigMappingHandler

    getNamingStrategy
  • Constructor Details

    • ConfigPropertiesConfigMappingHandler

      public ConfigPropertiesConfigMappingHandler()
  • Method Details

    • handles

      public boolean handles(Class<?> type)
      Specified by:
      handles in interface io.smallrye.config.ConfigMappingHandler
    • processField

      public io.smallrye.config.ConfigMappingHandler.FieldMember processField(Field field)
      Specified by:
      processField in interface io.smallrye.config.ConfigMappingHandler
    • ignoreUnmappedProperties

      public boolean ignoreUnmappedProperties()
      Specified by:
      ignoreUnmappedProperties in interface io.smallrye.config.ConfigMappingHandler
    • getPrefix

      public String getPrefix(Class<?> type)
      Specified by:
      getPrefix in interface io.smallrye.config.ConfigMappingHandler