| Modifier and Type | Method and Description |
|---|---|
<T> T |
SettingsManager.getProperty(Property<T> property)
Gets the given property from the configuration.
|
<T> void |
SettingsManager.setProperty(Property<T> property,
T value)
Sets a new value for the given property.
|
| 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.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Property<?>> |
LeafPropertiesGenerator.EntryBuilder.properties |
| Modifier and Type | Method and Description |
|---|---|
protected Property<?> |
LeafPropertiesGenerator.EntryBuilder.createConstantProperty(Object value,
String path) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Property<?>> |
LeafPropertiesGenerator.EntryBuilder.collectPropertiesFromBean(Object bean,
String path)
Processes a bean class and handles all of its writable properties.
|
<B> List<Property<?>> |
LeafPropertiesGenerator.generate(BeanProperty<B> beanProperty,
B value)
Generates a list of regular property objects for the given bean's data.
|
| Modifier and Type | Method and Description |
|---|---|
List<Property<?>> |
PropertyListBuilder.create() |
List<Property<?>> |
ConfigurationData.getProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyListBuilder.add(Property<?> property) |
| Constructor and Description |
|---|
ConfigurationData(List<? extends Property<?>> properties) |
ConfigurationData(List<? extends Property<?>> properties,
Map<String,String[]> sectionComments) |
| 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 | Class and Description |
|---|---|
class |
BeanProperty<B>
Property constructed by bean mapping.
|
class |
BooleanProperty
Boolean property.
|
class |
EnumProperty<E extends Enum<E>>
Enum property.
|
class |
IntegerProperty
Integer property.
|
class |
LowercaseStringListProperty
Lowercase String list property.
|
class |
OptionalProperty<T>
Property which may be empty.
|
class |
StringListProperty
String list property.
|
class |
StringProperty
String property.
|
| Modifier and Type | Method and Description |
|---|---|
Property<? extends T> |
OptionalProperty.getBaseProperty()
Returns the underlying property used to retrieve the value of the optional.
|
static <B> Property<B> |
PropertyInitializer.newBeanProperty(Class<B> beanClass,
String path,
B defaultValue)
Creates a new bean property.
|
static Property<List<String>> |
PropertyInitializer.newListProperty(String path,
String... defaultValues)
Creates a new String list property.
|
static Property<List<String>> |
PropertyInitializer.newLowercaseListProperty(String path,
String... defaultValues)
Creates a new String list property where all values are lowercase.
|
static <E extends Enum<E>> |
PropertyInitializer.newProperty(Class<E> clazz,
String path,
E defaultValue)
Creates a new enum property.
|
static Property<Boolean> |
PropertyInitializer.newProperty(String path,
boolean defaultValue)
Creates a new boolean property.
|
static Property<Integer> |
PropertyInitializer.newProperty(String path,
int defaultValue)
Creates a new integer property.
|
static Property<String> |
PropertyInitializer.newProperty(String path,
String defaultValue)
Creates a new String property.
|
static Property<Optional<Boolean>> |
PropertyInitializer.optionalBooleanProperty(String path) |
static <E extends Enum<E>> |
PropertyInitializer.optionalEnumProperty(Class<E> clazz,
String path) |
static Property<Optional<Integer>> |
PropertyInitializer.optionalIntegerProperty(String path) |
static Property<Optional<String>> |
PropertyInitializer.optionalStringProperty(String path) |
| Constructor and Description |
|---|
OptionalProperty(Property<? extends T> baseProperty)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Property<?>> |
YamlFileResource.convertPropertiesToExportableTypes(List<Property<?>> originalList)
Converts the property entries to exportable "leaf" properties.
|
| Modifier and Type | Method and Description |
|---|---|
List<PropertyPathTraverser.PathElement> |
PropertyPathTraverser.getPathElements(Property<?> property)
Returns all path elements for the given property that have not been traversed yet.
|
protected String |
YamlFileResource.transformValue(Property<?> property,
Object value)
Returns the YAML representation for the given value (belonging to the given value).
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Property<?>> |
YamlFileResource.convertPropertiesToExportableTypes(List<Property<?>> originalList)
Converts the property entries to exportable "leaf" properties.
|
Copyright © 2016–2018 The AuthMe Team. All rights reserved.