public class PlainMigrationService extends Object implements MigrationService
| Constructor and Description |
|---|
PlainMigrationService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndMigrate(PropertyResource resource,
List<Property<?>> properties)
Checks the settings and perform any necessary migrations.
|
protected boolean |
performMigrations(PropertyResource resource,
List<Property<?>> properties)
Override this method for custom migrations.
|
public boolean checkAndMigrate(PropertyResource resource, List<Property<?>> properties)
MigrationServicecheckAndMigrate in interface MigrationServiceresource - the property resourceproperties - all existing propertiestrue if a migration has been performed, false if the settings are up-to-dateprotected boolean performMigrations(PropertyResource resource, List<Property<?>> properties)
Note that you do not have to save the resource. The settings manager automatically does this if the migration service returns an according result.
resource - the property resource to checkproperties - list of known propertiesCopyright © 2016–2018 The AuthMe Team. All rights reserved.