Package step.migration
Class MigrationManager
- java.lang.Object
-
- step.migration.MigrationManager
-
public class MigrationManager extends Object
-
-
Constructor Summary
Constructors Constructor Description MigrationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddBinding(Class<T> class_, T object)booleanmigrate(CollectionFactory collectionFactory, step.core.Version from, step.core.Version to)Runs all the migration tasks registered to migratevoidregister(Class<? extends MigrationTask> migrationTask)Register a new migration task
-
-
-
Method Detail
-
addBinding
public <T> void addBinding(Class<T> class_, T object)
-
register
public void register(Class<? extends MigrationTask> migrationTask)
Register a new migration task- Parameters:
migrationTask- the task to be registered
-
migrate
public boolean migrate(CollectionFactory collectionFactory, step.core.Version from, step.core.Version to)
Runs all the migration tasks registered to migrate- Parameters:
from- the initial versionto- the new version- Returns:
- true if the migration ran successfully
-
-