public abstract class AbstractPropertySource extends Object implements PropertySource
PropertySource
, providing the basic mechanisms
for implementation based on an instance of Properties
.Constructor and Description |
---|
AbstractPropertySource(Properties properties) |
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() |
protected Properties |
getProperties() |
String |
getProperty(String key)
Returns a value corresponding to the given key, or null if not known.
|
boolean |
hasProperty(String key) |
String |
toString() |
public AbstractPropertySource(Properties properties)
public Set<String> getKeys()
getKeys
in interface PropertySource
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 Properties getProperties()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.