@groovy.transform.CompileStatic abstract class AbstractConnectionSources extends java.lang.Object
Abstract implementation of the ConnectionSources interface
Modifiers | Name | Description |
---|---|---|
protected org.springframework.core.env.PropertyResolver |
configuration |
|
protected ConnectionSourceFactory<T, S> |
connectionSourceFactory |
|
protected ConnectionSource<T, S> |
defaultConnectionSource |
|
protected java.util.Collection<ConnectionSourcesListener<T, S>> |
listeners |
Constructor and description |
---|
AbstractConnectionSources
(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, java.util.Map<java.lang.String, java.lang.Object> configuration) |
|
ConnectionSources<T, S> |
addListener(ConnectionSourcesListener<T, S> listener) |
|
void |
close() |
|
org.springframework.core.env.PropertyResolver |
getBaseConfiguration() |
|
protected java.lang.Iterable<java.lang.String> |
getConnectionSourceNames(ConnectionSourceFactory<T, S> connectionSourceFactory, org.springframework.core.env.PropertyResolver configuration) Implementors should provide a method to lookup the data source names, which could be read from a database, configuration etc. |
|
ConnectionSource<T, S> |
getDefaultConnectionSource() |
|
ConnectionSourceFactory<T, S> |
getFactory() |
|
java.util.Iterator<ConnectionSource<T, S>> |
iterator() |
|
static java.util.Set<java.lang.String> |
toValidConnectionSourceNames(java.util.Map<java.lang.String, java.lang.Object> allConnectionSources) |
Methods inherited from class | Name |
---|---|
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() |
Implementors should provide a method to lookup the data source names, which could be read from a database, configuration etc.
connectionSourceFactory
- The factory class for construction ConnectionSource instancesconfiguration
- The root configuration