public class DataSourceClosingSpringLiquibase extends liquibase.integration.spring.SpringLiquibase implements DisposableBean
SpringLiquibase extension that closes the underlying
DataSource once the database has been migrated.| Constructor and Description |
|---|
DataSourceClosingSpringLiquibase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated) |
createDatabase, createLiquibase, createResourceOpener, getBeanName, getChangeLog, getContexts, getDatabaseProductName, getDataSource, getDefaultSchema, getLabels, getResourceLoader, getTag, isDropFirst, isIgnoreClasspathPrefix, performUpdate, setBeanName, setChangeLog, setChangeLogParameters, setContexts, setDataSource, setDefaultSchema, setDropFirst, setIgnoreClasspathPrefix, setLabels, setResourceLoader, setRollbackFile, setShouldRun, setTag, 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 DisposableBeanExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.