info.magnolia.init.properties
Class AbstractPropertySource

java.lang.Object
  extended by 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

Constructor Summary
AbstractPropertySource(Properties properties)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPropertySource

public AbstractPropertySource(Properties properties)
Method Detail

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-2013 Magnolia International Ltd.. All Rights Reserved.