You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/lookup/AbstractRoutingDataSource.java
+29-15Lines changed: 29 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2010 the original author or authors.
2
+
* Copyright 2002-2012 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -51,6 +51,7 @@ public abstract class AbstractRoutingDataSource extends AbstractDataSource imple
51
51
52
52
privateDataSourceresolvedDefaultDataSource;
53
53
54
+
54
55
/**
55
56
* Specify the map of target DataSources, with the lookup key as key.
56
57
* The mapped value can either be a corresponding {@link javax.sql.DataSource}
@@ -121,6 +122,19 @@ public void afterPropertiesSet() {
121
122
}
122
123
}
123
124
125
+
/**
126
+
* Resolve the given lookup key object, as specified in the
127
+
* {@link #setTargetDataSources targetDataSources} map, into
128
+
* the actual lookup key to be used for matching with the
129
+
* {@link #determineCurrentLookupKey() current lookup key}.
130
+
* <p>The default implementation simply returns the given key as-is.
131
+
* @param lookupKey the lookup key object as specified by the user
0 commit comments