Class QuartzDataSourceScriptDatabaseInitializer
java.lang.Object
org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer
org.springframework.boot.autoconfigure.quartz.QuartzDataSourceScriptDatabaseInitializer
- All Implemented Interfaces:
Aware
,InitializingBean
,ResourceLoaderAware
DataSourceScriptDatabaseInitializer
for the Quartz Scheduler database. May be
registered as a bean to override auto-configuration.- Since:
- 2.6.0
- Author:
- Vedran Pavic, Andy Wilkinson, Phillip Webb
-
Constructor Summary
ConstructorDescriptionQuartzDataSourceScriptDatabaseInitializer
(DataSource dataSource, QuartzProperties properties) Create a newQuartzDataSourceScriptDatabaseInitializer
instance.QuartzDataSourceScriptDatabaseInitializer
(DataSource dataSource, DatabaseInitializationSettings settings) Create a newQuartzDataSourceScriptDatabaseInitializer
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
customize
(ResourceDatabasePopulator populator) Customize theResourceDatabasePopulator
.getSettings
(DataSource dataSource, QuartzProperties properties) AdaptsQuartz properties
toDatabaseInitializationSettings
replacing any @@platform@@ placeholders.Methods inherited from class org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer
getDataSource, isEmbeddedDatabase, runScripts
Methods inherited from class org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
afterPropertiesSet, initializeDatabase, setResourceLoader
-
Constructor Details
-
QuartzDataSourceScriptDatabaseInitializer
public QuartzDataSourceScriptDatabaseInitializer(DataSource dataSource, QuartzProperties properties) Create a newQuartzDataSourceScriptDatabaseInitializer
instance.- Parameters:
dataSource
- the Quartz Scheduler data sourceproperties
- the Quartz properties- See Also:
-
QuartzDataSourceScriptDatabaseInitializer
public QuartzDataSourceScriptDatabaseInitializer(DataSource dataSource, DatabaseInitializationSettings settings) Create a newQuartzDataSourceScriptDatabaseInitializer
instance.- Parameters:
dataSource
- the Quartz Scheduler data sourcesettings
- the database initialization settings- See Also:
-
-
Method Details
-
customize
Description copied from class:DataSourceScriptDatabaseInitializer
Customize theResourceDatabasePopulator
.- Overrides:
customize
in classDataSourceScriptDatabaseInitializer
- Parameters:
populator
- the configured database populator
-
getSettings
public static DatabaseInitializationSettings getSettings(DataSource dataSource, QuartzProperties properties) AdaptsQuartz properties
toDatabaseInitializationSettings
replacing any @@platform@@ placeholders.- Parameters:
dataSource
- the Quartz Scheduler data sourceproperties
- the Quartz properties- Returns:
- a new
DatabaseInitializationSettings
instance - See Also:
-