A factory for creating new ConnectionSource instances
| Fields inherited from class | Fields |
|---|---|
interface Settings |
PREFIX, SETTING_AUTO_FLUSH, SETTING_CUSTOM_TYPES, SETTING_DATASOURCE, SETTING_DATASOURCES, SETTING_DB_CREATE, SETTING_DEFAULT_CONSTRAINTS, SETTING_DEFAULT_MAPPING, SETTING_FAIL_ON_ERROR, SETTING_FLUSH_MODE, SETTING_MULTI_TENANCY_MODE, SETTING_MULTI_TENANT_RESOLVER, SETTING_MULTI_TENANT_RESOLVER_CLASS |
| Type | Name and description |
|---|---|
ConnectionSource<T, S> |
create(java.lang.String name, org.springframework.core.env.PropertyResolver configuration)Creates a new ConnectionSource for the given name and configuration |
ConnectionSource<T, S> |
create(java.lang.String name, S settings)Creates a new ConnectionSource for the given name and settings |
ConnectionSource<T, S> |
create(java.lang.String name, org.springframework.core.env.PropertyResolver configuration, ConnectionSource<T, S> fallbackConnectionSource)Creates a new ConnectionSource for the given name and configuration |
ConnectionSource<T, S> |
create(java.lang.String name, org.springframework.core.env.PropertyResolver configuration, F fallbackSettings)Creates a new ConnectionSource for the given name and configuration |
ConnectionSource<T, S> |
createRuntime(java.lang.String name, org.springframework.core.env.PropertyResolver configuration, S fallbackSettings)Creates a connection at runtime. |
java.io.Serializable |
getConnectionSourcesConfigurationKey()
|
Creates a new ConnectionSource for the given name and configuration
name - The nameconfiguration - The configurationCreates a new ConnectionSource for the given name and settings
name - The namesettings - The settingsCreates a new ConnectionSource for the given name and configuration
name - The nameconfiguration - The configurationfallbackConnectionSource - The fallback connection sourceCreates a new ConnectionSource for the given name and configuration
name - The nameconfiguration - The configurationfallbackSettings - The settings to fallback to if none are specifiedCreates a connection at runtime. This method differs from the `create` method is that it handles the runtime creation (as oppose to boot time) creation of connection sources
name - The name of the connection sourceconfiguration - The configurationfallbackSettings - The fallback settings