Class ConfigurationMetadataGenerator


  • public class ConfigurationMetadataGenerator
    extends java.lang.Object
    This is ConfigurationMetadataGenerator. This class is invoked by the build during the finalization of the compile phase. Its job is to scan the generated configuration metadata and produce metadata for settings that the build process is unable to parse. Specifically, this includes fields that are of collection type (indexed) where the inner type is an externalized class.

    Example: private var list = new ArrayList<>(0) The generator additionally adds hints to the metadata generated to indicate required properties and modules.

    Since:
    5.2.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Main.
      protected static java.util.Set<ConfigurationMetadataHint> processHints​(java.util.Collection<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> props, java.util.Collection<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)  
      protected void processMappableProperties​(java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> properties, java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)  
      protected void processNestedEnumProperties​(java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> properties, java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurationMetadataGenerator

        public ConfigurationMetadataGenerator()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main.
        Parameters:
        args - the args
        Throws:
        java.lang.Exception - the exception
      • processHints

        protected static java.util.Set<ConfigurationMetadataHint> processHints​(java.util.Collection<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> props,
                                                                               java.util.Collection<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)
      • processMappableProperties

        protected void processMappableProperties​(java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> properties,
                                                 java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)
      • processNestedEnumProperties

        protected void processNestedEnumProperties​(java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> properties,
                                                   java.util.Set<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> groups)