public abstract class PropertyBackend extends AbstractConfigBackend
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
properties |
protected String |
sourceName |
observers| Modifier | Constructor and Description |
|---|---|
protected |
PropertyBackend(String sourceName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
Set<String> |
getSubconfigIds(String key) |
<V> V |
getValue(String key,
Class<V> valueType) |
<V> V |
getValue(String key,
V defaultValue) |
<V> V[] |
getValues(String key,
Class<V> valueType) |
<V> V[] |
getValues(String key,
V[] defaultValues) |
addObserver, doReload, getParser, reloadConfiguration, removeObserverprotected final String sourceName
protected final Properties properties
protected PropertyBackend(String sourceName)
public <V> V getValue(String key, Class<V> valueType) throws ValueFormatException
ValueFormatExceptionpublic <V> V getValue(String key, V defaultValue) throws ValueFormatException
ValueFormatExceptionpublic <V> V[] getValues(String key, Class<V> valueType) throws ValueFormatException
ValueFormatExceptionpublic <V> V[] getValues(String key, V[] defaultValues) throws ValueFormatException
ValueFormatExceptionpublic Set<String> getSubconfigIds(String key) throws DuplicateConfigIdException
DuplicateConfigIdExceptionprotected void cleanup()
Copyright © 2019 Objekt-Kontor IS GmbH & Co KG. All rights reserved.