| Modifier and Type | Method and Description |
|---|---|
void |
ConfigurationDataImpl.initializeValues(@NotNull PropertyReader reader) |
void |
ConfigurationData.initializeValues(@NotNull PropertyReader propertyReader)
Initializes the values of all
known properties based on the provided reader. |
protected <T> boolean |
ConfigurationDataImpl.setValueForProperty(@NotNull Property<T> property,
@NotNull PropertyReader reader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PlainMigrationService.checkAndMigrate(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData) |
boolean |
MigrationService.checkAndMigrate(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Performs the migration, returning whether a migration has been performed or not.
|
protected boolean |
PlainMigrationService.performMigrations(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Override this method for custom migrations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
VersionMigrationService.checkAndMigrate(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData) |
void |
VersionMigration.migrate(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Migrates the configuration.
|
protected boolean |
VersionMigrationService.performMigrations(@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Performs the migration by using the versioning system.
|
protected int |
VersionMigrationService.runApplicableMigrations(int readConfigVersion,
@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Runs applicable migrations successively: if a migration is found for the read config version, it is run and its
target version is noted. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull PropertyValue<T> |
Property.determineValue(@NotNull PropertyReader propertyReader)
Returns the value, based on the given reader, which should be used for this property.
|
@NotNull PropertyValue<T> |
BaseProperty.determineValue(@NotNull PropertyReader reader) |
@NotNull PropertyValue<Optional<T>> |
OptionalProperty.determineValue(@NotNull PropertyReader reader) |
protected abstract T |
BaseProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder)
Constructs the value of the property from the property reader.
|
protected T[] |
InlineArrayProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected T[] |
ArrayProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected @Nullable Map<String,V> |
MapProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected T |
TypeBasedProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected @Nullable Pattern |
RegexProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected @Nullable List<T> |
ListProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
protected Set<T> |
SetProperty.getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder) |
default boolean |
Property.isValidInResource(@NotNull PropertyReader propertyReader)
Convenience method to check whether the property is present in the given reader and a valid representation
of the property type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
YamlFileReader
YAML file reader.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull PropertyReader |
PropertyResource.createReader()
Creates a reader to access the values in the medium (typically a file).
|
@NotNull PropertyReader |
YamlFileResource.createReader() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
MigrationUtils.moveProperty(@NotNull Property<T> oldProperty,
@NotNull Property<T> newProperty,
@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Utility method: moves the value of an old property to a new property.
|
Copyright © 2016–2023 The AuthMe Team. All rights reserved.