shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/DataSourceConfigurationValidator.java
/**
     * Validate data source configurations.
     * 
     * @param dataSourceConfigs data source configurations
     * @throws InvalidResourcesException invalid resources exception
     */
Validate data source configurations.

@param dataSourceConfigs data source configurations
@throws InvalidResourcesException invalid resources exception
Validate data source configurations . @param dataSourceConfigs data source configurations @throws InvalidResourcesException invalid resources exception
public void validate(final Map<String, DataSourceConfiguration> dataSourceConfigs) throws InvalidResourcesException {
        Collection<String> errorMessages = new LinkedList<>();
        for (Entry<String, DataSourceConfiguration> entry : dataSourceConfigs.entrySet()) {
            try {
                validate(entry.getKey(), entry.getValue());
            } catch (final InvalidDataSourceConfigurationException ex) {
                errorMessages.add(ex.getMessage());
            }
        }
        if (!errorMessages.isEmpty()) {
            throw new InvalidResourcesException(errorMessages);
        }
    }
public void validate ( final Map < String , DataSourceConfiguration > dataSourceConfigs ) throws InvalidResourcesException { Collection < String > errorMessages = new LinkedList < > ( ) ; for ( Entry < String , DataSourceConfiguration > entry : dataSourceConfigs . entrySet ( ) ) { try { validate ( entry . getKey ( ) , entry . getValue ( ) ) ; } catch ( final InvalidDataSourceConfigurationException ex ) { errorMessages . add ( ex . getMessage ( ) ) ; } } if ( ! errorMessages . isEmpty ( ) ) { throw new InvalidResourcesException ( errorMessages ) ; } }
Validate data source configurations.
Validate data source configurations .