public class PlainMigrationService extends Object implements MigrationService
MIGRATION_REQUIRED, NO_MIGRATION_NEEDED| Constructor and Description |
|---|
PlainMigrationService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndMigrate(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Performs the migration, returning whether a migration has been performed or not.
|
protected boolean |
performMigrations(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Override this method for custom migrations.
|
public boolean checkAndMigrate(@NotNull
@NotNull PropertyReader reader,
@NotNull
@NotNull ConfigurationData configurationData)
MigrationServicecheckAndMigrate in interface MigrationServicereader - reader to access the values in the configuration fileconfigurationData - configuration data, which knows all properties and manages their associated valuesprotected boolean performMigrations(@NotNull
@NotNull PropertyReader reader,
@NotNull
@NotNull ConfigurationData configurationData)
Note that the settings manager automatically saves the resource
if the migration service returns MigrationService.MIGRATION_REQUIRED from checkAndMigrate(ch.jalu.configme.resource.PropertyReader, ch.jalu.configme.configurationdata.ConfigurationData).
reader - the reader with which the configuration file can be readconfigurationData - the configuration dataMigrationService)Copyright © 2016–2023 The AuthMe Team. All rights reserved.