Interface PropertiesLoader
-
- All Known Implementing Classes:
AbstractPropertiesLoader,ChainedPropertiesLoader,FilePropertiesLoader,FilterPropertiesLoader,JndiPropertiesLoader
public interface PropertiesLoaderA
PropertiesLoaderloadsPropertiesResources and returns the contained properties as aPropertiesobject.The concrete implementation should specify whether it can be used in several threads concurrently or not.
- Author:
- sts
- See Also:
PropertiesResource,Properties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Propertiesload(PropertiesResource propertiesResource)Loads the givenPropertiesResourceif present.java.util.Map<java.lang.String,java.lang.String>loadAsMap(PropertiesResource propertiesResource)Loads the givenPropertiesResourceif present.
-
-
-
Method Detail
-
load
java.util.Properties load(PropertiesResource propertiesResource) throws ConfigurationException
Loads the givenPropertiesResourceif present. Returns the properties as aPropertiesobject.- Parameters:
propertiesResource- thePropertiesResourceto load.- Returns:
- the loaded
Properties - Throws:
ConfigurationException- if thePropertiesResourcecould not be loaded.- See Also:
PropertiesResource,Properties
-
loadAsMap
java.util.Map<java.lang.String,java.lang.String> loadAsMap(PropertiesResource propertiesResource) throws ConfigurationException
Loads the givenPropertiesResourceif present. Returns the properties as aMapobject.- Parameters:
propertiesResource- thePropertiesResourceto load.- Returns:
- the loaded
Map - Throws:
ConfigurationException- if thePropertiesResourcecould not be loaded.- See Also:
PropertiesResource,Properties
-
-