Default implementation of the ConnectionSources interface. This implementation reads ConnectionSource implementations from configuration and stores them in-memory
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, ConnectionSource<T, S>> |
connectionSourceMap |
Fields inherited from class | Fields |
---|---|
class AbstractConnectionSources |
configuration, connectionSourceFactory, defaultConnectionSource, listeners |
Constructor and description |
---|
InMemoryConnectionSources
(ConnectionSource<T, S> defaultConnectionSource, ConnectionSourceFactory<T, S> connectionSourceFactory, org.springframework.core.env.PropertyResolver configuration) |
Type Params | Return Type | Name and description |
---|---|---|
|
ConnectionSource<T, S> |
addConnectionSource(java.lang.String name, org.springframework.core.env.PropertyResolver configuration) |
|
java.lang.Iterable<ConnectionSource<T, S>> |
getAllConnectionSources() |
|
ConnectionSource<T, S> |
getConnectionSource(java.lang.String name) |
Methods inherited from class | Name |
---|---|
class AbstractConnectionSources |
addConnectionSource, addListener, close, getBaseConfiguration, getConnectionSourceNames, getDefaultConnectionSource, getFactory, iterator, toValidConnectionSourceNames |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |