@ Subscribe public synchronized void renew ( final SchemaAddedEvent schemaAddedEvent ) { logicSchemas . put ( schemaAddedEvent . getShardingSchemaName ( ) , createLogicSchema ( schemaAddedEvent . getShardingSchemaName ( ) , Collections . singletonMap ( schemaAddedEvent . getShardingSchemaName ( ) , DataSourceConverter . getDataSourceParameterMap ( schemaAddedEvent . getDataSourceConfigurations ( ) ) ) , schemaAddedEvent . getRuleConfiguration ( ) , true ) ) ; }
Renew to add new schema .