info.magnolia.init.properties
Class AbstractPropertySource
java.lang.Object
info.magnolia.init.properties.AbstractPropertySource
- All Implemented Interfaces:
- PropertySource
- Direct Known Subclasses:
- AbstractStreamBasedPropertySource, InitPathsPropertySource, ModulePropertiesSource, SystemPropertySource
public abstract class AbstractPropertySource
- extends Object
- implements PropertySource
Abstract implementation of PropertySource
, providing the basic mechanisms
for implementation based on an instance of Properties
.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
AbstractPropertySource
public AbstractPropertySource(Properties properties)
getKeys
public Set<String> getKeys()
- Specified by:
getKeys
in interface PropertySource
getProperty
public String getProperty(String key)
- Description copied from interface:
PropertySource
- Returns a value corresponding to the given key, or null if not known.
- Specified by:
getProperty
in interface PropertySource
getBooleanProperty
public boolean getBooleanProperty(String property)
- Specified by:
getBooleanProperty
in interface PropertySource
hasProperty
public boolean hasProperty(String key)
- Specified by:
hasProperty
in interface PropertySource
describe
public String describe()
- Description copied from interface:
PropertySource
- Provides a description of this source, typically the location of the file
that was used to load the properties this source holds.
Useful for debugging / logging.
- Specified by:
describe
in interface PropertySource
toString
public String toString()
- Overrides:
toString
in class Object
getProperties
protected Properties getProperties()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.