Class LiquibaseAutoBindModule
java.lang.Object
se.fortnox.reactivewizard.dbmigrate.LiquibaseAutoBindModule
- All Implemented Interfaces:
com.google.inject.Module,Comparable<AutoBindModule>,AutoBindModule
Runs liquibase before the system is started, if parameter "db-migrate" is used. The following alternatives exist:
- "db-migrate": Run migrations and shutdown system. Use this locally to avoid liquibase migrations during normal run.
- "db-migrate-run": Run migrations and start the system. Use this in production, when you want to run migrations before the system is started.
- "db-drop-migrate": Drop database, run migrations and shutdown system. Use this locally to get a clean start.
- "db-drop-migrate-run": Drop database, run migrations and start the system. Use this locally to get a clean start and a running system.
-
Constructor Summary
ConstructorsConstructorDescriptionLiquibaseAutoBindModule(String[] args, LiquibaseMigrateProvider liquibaseMigrateProvider) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.fortnox.reactivewizard.binding.AutoBindModule
compareTo, getPrio
-
Constructor Details
-
LiquibaseAutoBindModule
@Inject public LiquibaseAutoBindModule(@Named("args") String[] args, LiquibaseMigrateProvider liquibaseMigrateProvider)
-
-
Method Details
-
preBind
public void preBind()- Specified by:
preBindin interfaceAutoBindModule
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-