Models multiple connection sources
- The underlying native type of the ConnectionSource, for example a SQL javax.sql.DataSource| Type | Name and description |
|---|---|
ConnectionSource<T, S> |
addConnectionSource(java.lang.String name, org.springframework.core.env.PropertyResolver configuration)Adds a new ConnectionSource |
ConnectionSource<T, S> |
addConnectionSource(java.lang.String name, java.util.Map<java.lang.String, java.lang.Object> configuration)Adds a new ConnectionSource |
ConnectionSources<T, S> |
addListener(ConnectionSourcesListener<T, S> listener)Adds a listener |
java.lang.Iterable<ConnectionSource<T, S>> |
getAllConnectionSources()@return An iterable containing all ConnectionSource instances |
org.springframework.core.env.PropertyResolver |
getBaseConfiguration()@return Obtains the base configuration |
ConnectionSource<T, S> |
getConnectionSource(java.lang.String name)Obtain a ConnectionSource by name |
ConnectionSource<T, S> |
getDefaultConnectionSource()Obtains the default ConnectionSource |
ConnectionSourceFactory<T, S> |
getFactory()@return The factory used to create new connections |
| Methods inherited from class | Name |
|---|---|
interface java.lang.Iterable |
java.lang.Iterable#iterator() |
interface java.io.Closeable |
java.io.Closeable#close() |
Adds a new ConnectionSource
name - The name of the connection sourceconfiguration - The configurationAdds a new ConnectionSource
name - The name of the connection sourceconfiguration - The configurationAdds a listener
listener - The listener
Obtain a ConnectionSource by name
name - The name of the sourceObtains the default ConnectionSource