类 DataSourceClosingSpringLiquibase
java.lang.Object
liquibase.integration.spring.SpringLiquibase
org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase
- 所有已实现的接口:
Aware,BeanNameAware,DisposableBean,InitializingBean,ResourceLoaderAware
public class DataSourceClosingSpringLiquibase
extends liquibase.integration.spring.SpringLiquibase
implements DisposableBean
A custom
SpringLiquibase extension that closes the underlying
DataSource once the database has been migrated.- 从以下版本开始:
- 2.0.6
- 作者:
- Andy Wilkinson
-
字段概要
从类继承的字段 liquibase.integration.spring.SpringLiquibase
analyticsEnabled, beanName, changeLog, clearCheckSums, contexts, customizer, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labelFilter, licenseKey, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, showSummary, showSummaryOutput, tag, testRollbackOnUpdate, uiService -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoiddestroy()voidsetCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated) 从类继承的方法 liquibase.integration.spring.SpringLiquibase
createDatabase, createLiquibase, createResourceOpener, getAnalyticsEnabled, getBeanName, getChangeLog, getContexts, getCustomizer, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabelFilter, getLabels, getLicenseKey, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, getUiService, isClearCheckSums, isDropFirst, isTestRollbackOnUpdate, performUpdate, setAnalyticsEnabled, setBeanName, setChangeLog, setChangeLogParameters, setClearCheckSums, setContexts, setCustomizer, setDatabaseChangeLogLockTable, setDatabaseChangeLogTable, setDataSource, setDefaultSchema, setDropFirst, setLabelFilter, setLabels, setLicenseKey, setLiquibaseSchema, setLiquibaseTablespace, setResourceLoader, setRollbackFile, setShouldRun, setShowSummary, setShowSummaryOutput, setTag, setTestRollbackOnUpdate, setUiService, toString
-
构造器详细资料
-
DataSourceClosingSpringLiquibase
public DataSourceClosingSpringLiquibase()
-
-
方法详细资料
-
setCloseDataSourceOnceMigrated
public void setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated) -
afterPropertiesSet
public void afterPropertiesSet() throws liquibase.exception.LiquibaseException- 指定者:
afterPropertiesSet在接口中InitializingBean- 覆盖:
afterPropertiesSet在类中liquibase.integration.spring.SpringLiquibase- 抛出:
liquibase.exception.LiquibaseException
-
destroy
- 指定者:
destroy在接口中DisposableBean- 抛出:
Exception
-