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 |
MAGNOLIA_APP_ROOTDIR, MAGNOLIA_BOOTSTRAP_ROOTDIR, MAGNOLIA_BOOTSTRAP_SAMPLES, MAGNOLIA_CACHE_STARTDIR, MAGNOLIA_CONTEXTPATH, MAGNOLIA_EXCHANGE_HISTORY, MAGNOLIA_REPOSITORIES_CLUSTER_CONFIG, MAGNOLIA_REPOSITORIES_CLUSTER_MASTER, MAGNOLIA_REPOSITORIES_CONFIG, MAGNOLIA_REPOSITORIES_HOME, MAGNOLIA_SERVERNAME, MAGNOLIA_UPLOAD_TMPDIR, MAGNOLIA_UTF8_ENABLED, MAGNOLIA_WEBAPP
Modifier | Constructor and Description |
---|---|
protected |
AbstractMagnoliaConfigurationProperties() |
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)
protected AbstractMagnoliaConfigurationProperties()
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–2018 Magnolia International Ltd.. All rights reserved.