| Package | Description |
|---|---|
| ch.jalu.configme | |
| ch.jalu.configme.beanmapper | |
| ch.jalu.configme.migration | |
| ch.jalu.configme.properties | |
| ch.jalu.configme.resource |
| Modifier and Type | Field and Description |
|---|---|
protected PropertyResource |
SettingsManager.resource |
| Modifier and Type | Method and Description |
|---|---|
static SettingsManager |
SettingsManager.createWithProperties(PropertyResource resource,
MigrationService migrationService,
Collection<? extends Property<?>> properties)
Convenience method for creating a settings manager for the given collection of properties.
|
| Constructor and Description |
|---|
SettingsManager(PropertyResource resource,
MigrationService migrationService,
Class<? extends SettingsHolder>... settingsClasses)
Constructor.
|
SettingsManager(PropertyResource resource,
MigrationService migrationService,
ConfigurationData configurationData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
Mapper.convertToBean(String path,
PropertyResource resource,
Class<T> clazz)
Converts the value in the property resource at the given path to the provided beans class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PlainMigrationService.checkAndMigrate(PropertyResource resource,
List<Property<?>> properties) |
boolean |
MigrationService.checkAndMigrate(PropertyResource resource,
List<Property<?>> properties)
Checks the settings and perform any necessary migrations.
|
protected boolean |
PlainMigrationService.performMigrations(PropertyResource resource,
List<Property<?>> properties)
Override this method for custom migrations.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
LowercaseStringListProperty.getFromResource(PropertyResource resource) |
protected Optional<T> |
OptionalProperty.getFromResource(PropertyResource resource) |
protected Integer |
IntegerProperty.getFromResource(PropertyResource resource) |
protected B |
BeanProperty.getFromResource(PropertyResource resource) |
protected List<String> |
StringListProperty.getFromResource(PropertyResource resource) |
protected E |
EnumProperty.getFromResource(PropertyResource resource) |
protected abstract T |
Property.getFromResource(PropertyResource resource) |
protected String |
StringProperty.getFromResource(PropertyResource resource) |
protected Boolean |
BooleanProperty.getFromResource(PropertyResource resource) |
T |
Property.getValue(PropertyResource resource)
Gets the property value from the given resource and falls back to the default value if not present.
|
boolean |
OptionalProperty.isPresent(PropertyResource resource) |
boolean |
StringListProperty.isPresent(PropertyResource resource) |
boolean |
Property.isPresent(PropertyResource resource)
Returns whether or not the given resource contains the property.
|
| Modifier and Type | Class and Description |
|---|---|
class |
YamlFileResource
Property resource based on a YAML file.
|
Copyright © 2016–2018 The AuthMe Team. All rights reserved.