public static class LiquibaseAutoConfiguration.DataSourceClosingSpringLiquibase extends SpringLiquibase implements org.springframework.beans.factory.DisposableBean
SpringLiquibase extension that closes the underlying
DataSource once the database has been migrated.SpringLiquibase.SpringResourceOpenerCustombeanName, changeLog, contexts, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labels, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, tag, testRollbackOnUpdate| Constructor and Description |
|---|
DataSourceClosingSpringLiquibase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated) |
createResourceOpenercreateDatabase, createLiquibase, getBeanName, getChangeLog, getContexts, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabels, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, isDropFirst, isIgnoreClasspathPrefix, isTestRollbackOnUpdate, performUpdate, setBeanName, setChangeLog, setChangeLogParameters, setContexts, setDatabaseChangeLogLockTable, setDatabaseChangeLogTable, setDataSource, setDefaultSchema, setDropFirst, setIgnoreClasspathPrefix, setLabels, setLiquibaseSchema, setLiquibaseTablespace, setResourceLoader, setRollbackFile, setShouldRun, setTag, setTestRollbackOnUpdate, toStringpublic void setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated)
public void afterPropertiesSet()
throws liquibase.exception.LiquibaseException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class liquibase.integration.spring.SpringLiquibaseliquibase.exception.LiquibaseExceptionCopyright © 2018–2020 Tesler. All rights reserved.