Skip to content

Commit

Permalink
Deprecate DataSources#fromName
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Aug 10, 2023
1 parent 9c73946 commit e6cad15
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ public DataSources(DataSourcesBuildTimeConfig dataSourcesBuildTimeConfig,
* (which makes sense because {@code DataSource} is a {@code Singleton} bean).
* <p>
* This method is thread-safe
*
* @deprecated This method should not be used as it can very easily lead to timing issues during bean creation
*/
@Deprecated
public static AgroalDataSource fromName(String dataSourceName) {
return Arc.container().instance(DataSources.class).get()
.getDataSource(dataSourceName);
Expand Down

0 comments on commit e6cad15

Please sign in to comment.