public class DefaultLiquibaseConnectionProvider extends Object implements LiquibaseConnectionProviderFactory, LiquibaseConnectionProvider
| Constructor and Description |
|---|
DefaultLiquibaseConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
baseLiquibaseInitialization() |
void |
close()
This is called when the server shuts down.
|
LiquibaseConnectionProvider |
create(KeycloakSession session) |
String |
getId() |
liquibase.Liquibase |
getLiquibase(Connection connection,
String defaultSchema) |
liquibase.Liquibase |
getLiquibaseForCustomUpdate(Connection connection,
String defaultSchema,
String changelogLocation,
ClassLoader classloader,
String changelogTableName) |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
public LiquibaseConnectionProvider create(KeycloakSession session)
create in interface ProviderFactory<LiquibaseConnectionProvider>protected void baseLiquibaseInitialization()
public void init(Config.Scope config)
ProviderFactoryinit in interface ProviderFactory<LiquibaseConnectionProvider>public void postInit(KeycloakSessionFactory factory)
ProviderFactorypostInit in interface ProviderFactory<LiquibaseConnectionProvider>public void close()
ProviderFactoryclose in interface Providerclose in interface ProviderFactory<LiquibaseConnectionProvider>public String getId()
getId in interface ProviderFactory<LiquibaseConnectionProvider>public liquibase.Liquibase getLiquibase(Connection connection, String defaultSchema) throws liquibase.exception.LiquibaseException
getLiquibase in interface LiquibaseConnectionProviderliquibase.exception.LiquibaseExceptionpublic liquibase.Liquibase getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) throws liquibase.exception.LiquibaseException
getLiquibaseForCustomUpdate in interface LiquibaseConnectionProviderliquibase.exception.LiquibaseExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.