Class JdbcSessionDataSourceScriptDatabaseInitializer
java.lang.Object
org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer
org.springframework.boot.autoconfigure.session.JdbcSessionDataSourceScriptDatabaseInitializer
- All Implemented Interfaces:
Aware
,InitializingBean
,ResourceLoaderAware
public class JdbcSessionDataSourceScriptDatabaseInitializer
extends DataSourceScriptDatabaseInitializer
DataSourceScriptDatabaseInitializer
for the Spring Session JDBC database. May
be registered as a bean to override auto-configuration.- Since:
- 2.6.0
- Author:
- Dave Syer, Vedran Pavic, Andy Wilkinson, Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
AbstractScriptDatabaseInitializer.Scripts
-
Constructor Summary
ConstructorDescriptionJdbcSessionDataSourceScriptDatabaseInitializer
(DataSource dataSource, JdbcSessionProperties properties) Create a newJdbcSessionDataSourceScriptDatabaseInitializer
instance.JdbcSessionDataSourceScriptDatabaseInitializer
(DataSource dataSource, DatabaseInitializationSettings settings) Create a newJdbcSessionDataSourceScriptDatabaseInitializer
instance. -
Method Summary
Methods inherited from class org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer
customize, getDataSource, isEmbeddedDatabase, runScripts
Methods inherited from class org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
afterPropertiesSet, initializeDatabase, setResourceLoader
-
Constructor Details
-
JdbcSessionDataSourceScriptDatabaseInitializer
public JdbcSessionDataSourceScriptDatabaseInitializer(DataSource dataSource, JdbcSessionProperties properties) Create a newJdbcSessionDataSourceScriptDatabaseInitializer
instance.- Parameters:
dataSource
- the Spring Session JDBC data sourceproperties
- the Spring Session JDBC properties- See Also:
-
getSettings(javax.sql.DataSource, org.springframework.boot.autoconfigure.session.JdbcSessionProperties)
-
JdbcSessionDataSourceScriptDatabaseInitializer
public JdbcSessionDataSourceScriptDatabaseInitializer(DataSource dataSource, DatabaseInitializationSettings settings) Create a newJdbcSessionDataSourceScriptDatabaseInitializer
instance.- Parameters:
dataSource
- the Spring Session JDBC data sourcesettings
- the database initialization settings- See Also:
-
getSettings(javax.sql.DataSource, org.springframework.boot.autoconfigure.session.JdbcSessionProperties)
-