| Package | Description |
|---|---|
| ch.jalu.configme.configurationdata | |
| ch.jalu.configme.migration | |
| ch.jalu.configme.properties | |
| ch.jalu.configme.resource |
| Modifier and Type | Method and Description |
|---|---|
void |
ConfigurationDataImpl.initializeValues(PropertyReader reader) |
void |
ConfigurationData.initializeValues(PropertyReader propertyReader)
Initializes the values of all
known properties based on the provided reader. |
protected <T> boolean |
ConfigurationDataImpl.setValueForProperty(Property<T> property,
PropertyReader reader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PlainMigrationService.checkAndMigrate(PropertyReader reader,
ConfigurationData configurationData) |
boolean |
MigrationService.checkAndMigrate(PropertyReader reader,
ConfigurationData configurationData)
Performs the migration, returning whether a migration has been performed or not.
|
protected static <T> boolean |
PlainMigrationService.moveProperty(Property<T> oldProperty,
Property<T> newProperty,
PropertyReader reader,
ConfigurationData configurationData)
Utility method: moves the value of an old property to a new property.
|
protected boolean |
PlainMigrationService.performMigrations(PropertyReader reader,
ConfigurationData configurationData)
Override this method for custom migrations.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyValue<T> |
Property.determineValue(PropertyReader propertyReader)
Returns the value, based on the given reader, which should be used for this property.
|
PropertyValue<T> |
BaseProperty.determineValue(PropertyReader reader) |
PropertyValue<Optional<T>> |
OptionalProperty.determineValue(PropertyReader reader) |
protected abstract T |
BaseProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder)
Constructs the value of the property from the property reader.
|
protected T[] |
InlineArrayProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected T[] |
ArrayProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected Map<String,V> |
MapProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected T |
TypeBasedProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected Pattern |
RegexProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected List<T> |
ListProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
protected Set<T> |
SetProperty.getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder) |
default boolean |
Property.isValidInResource(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 |
|---|---|
PropertyReader |
PropertyResource.createReader()
Creates a reader to access the values in the medium (typically a file).
|
PropertyReader |
YamlFileResource.createReader() |
Copyright © 2016–2021 The AuthMe Team. All rights reserved.