public class DataSourceClosingSpringLiquibase extends liquibase.integration.spring.SpringLiquibase implements DisposableBean
SpringLiquibase extension that closes the underlying
DataSource once the database has been migrated.beanName, changeLog, clearCheckSums, 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) |
createDatabase, createLiquibase, createResourceOpener, getBeanName, getChangeLog, getContexts, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabels, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, isClearCheckSums, isDropFirst, isIgnoreClasspathPrefix, isTestRollbackOnUpdate, performUpdate, setBeanName, setChangeLog, setChangeLogParameters, setClearCheckSums, 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 InitializingBeanafterPropertiesSet in class liquibase.integration.spring.SpringLiquibaseliquibase.exception.LiquibaseExceptionpublic void destroy()
throws Exception
destroy in interface DisposableBeanException