public abstract class AbstractMagnoliaConfigurationProperties extends Object implements MagnoliaConfigurationProperties
MagnoliaConfigurationProperties
implementation.
TODO: cache results.Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
protected static String |
PLACEHOLDER_PREFIX |
protected static String |
PLACEHOLDER_SUFFIX |
protected List<PropertySource> |
sources |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMagnoliaConfigurationProperties(List<PropertySource> propertySources) |
Modifier and Type | Method and Description |
---|---|
String |
describe()
Provides a description of this source, typically the location of the file
that was used to load the properties this source holds.
|
boolean |
getBooleanProperty(String property) |
Set<String> |
getKeys() |
String |
getProperty(String key)
Returns a value corresponding to the given key, or null if not known.
|
PropertySource |
getPropertySource(String key) |
boolean |
hasProperty(String key) |
void |
init() |
protected String |
parseStringValue(String strVal,
Set<String> visitedPlaceholders)
Parse the given String value recursively, to be able to resolve nested placeholders.
|
String |
toString() |
protected static final org.slf4j.Logger log
protected List<PropertySource> sources
protected static final String PLACEHOLDER_PREFIX
protected static final String PLACEHOLDER_SUFFIX
protected AbstractMagnoliaConfigurationProperties(List<PropertySource> propertySources)
public void init() throws Exception
init
in interface MagnoliaConfigurationProperties
Exception
public Set<String> getKeys()
getKeys
in interface PropertySource
public PropertySource getPropertySource(String key)
getPropertySource
in interface MagnoliaConfigurationProperties
public String getProperty(String key)
PropertySource
getProperty
in interface PropertySource
public boolean getBooleanProperty(String property)
getBooleanProperty
in interface PropertySource
public boolean hasProperty(String key)
hasProperty
in interface PropertySource
public String describe()
PropertySource
describe
in interface PropertySource
protected String parseStringValue(String strVal, Set<String> visitedPlaceholders)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.