info.magnolia.init
Interface PropertySource

All Known Subinterfaces:
MagnoliaConfigurationProperties
All Known Implementing Classes:
AbstractMagnoliaConfigurationProperties, AbstractPropertySource, AbstractStreamBasedPropertySource, ClasspathPropertySource, DefaultMagnoliaConfigurationProperties, FileSystemPropertySource, InitPathsPropertySource, ModulePropertiesSource, ServletContextPropertySource, SystemPropertySource

public interface PropertySource

Basic Magnolia configuration typically happens with a set of files typically called "magnolia.properties", loaded in a given order, from different location. This class derives its name from that, but properties can be loaded from different types of sources. (module descriptors, ...)

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

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 key)
           
 Set<String> getKeys()
           
 String getProperty(String key)
          Returns a value corresponding to the given key, or null if not known.
 boolean hasProperty(String key)
           
 

Method Detail

getKeys

Set<String> getKeys()

getProperty

String getProperty(String key)
Returns a value corresponding to the given key, or null if not known.


getBooleanProperty

boolean getBooleanProperty(String key)

hasProperty

boolean hasProperty(String key)

describe

String describe()
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.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.