spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/SimpleConfigurationMetadataRepository.java
/**
	 * Register the specified {@link ConfigurationMetadataSource sources}.
	 * @param sources the sources to add
	 */
Register the specified  ConfigurationMetadataSource sources.
@param sources the sources to add
Register the specified ConfigurationMetadataSource sources . @param sources the sources to add
public void add(Collection<ConfigurationMetadataSource> sources) {
		for (ConfigurationMetadataSource source : sources) {
			String groupId = source.getGroupId();
			ConfigurationMetadataGroup group = this.allGroups.get(groupId);
			if (group == null) {
				group = new ConfigurationMetadataGroup(groupId);
				this.allGroups.put(groupId, group);
			}
			String sourceType = source.getType();
			if (sourceType != null) {
				addOrMergeSource(group.getSources(), sourceType, source);
			}
		}
	}
public void add ( Collection < ConfigurationMetadataSource > sources ) { for ( ConfigurationMetadataSource source : sources ) { String groupId = source . getGroupId ( ) ; ConfigurationMetadataGroup group = this . allGroups . get ( groupId ) ; if ( group == null ) { group = new ConfigurationMetadataGroup ( groupId ) ; this . allGroups . put ( groupId , group ) ; } String sourceType = source . getType ( ) ; if ( sourceType != null ) { addOrMergeSource ( group . getSources ( ) , sourceType , source ) ; } } }
Register the specified {@link ConfigurationMetadataSource sources}.
Register the specified { @link ConfigurationMetadataSource sources } .