Package step.migration
Class MigrationManager
- java.lang.Object
-
- step.migration.MigrationManager
-
public class MigrationManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected GlobalContext
context
protected List<MigrationTask>
migrators
-
Constructor Summary
Constructors Constructor Description MigrationManager(GlobalContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
migrate(Version from, Version to)
Runs all the migration tasks registered to migratevoid
register(MigrationTask migrationTask)
Register a new migration task
-
-
-
Field Detail
-
context
protected final GlobalContext context
-
migrators
protected List<MigrationTask> migrators
-
-
Constructor Detail
-
MigrationManager
public MigrationManager(GlobalContext context)
-
-
Method Detail
-
register
public void register(MigrationTask migrationTask)
Register a new migration task- Parameters:
migrationTask
- the task to be registered
-
-