Interface PropertiesLoader
- All Known Implementing Classes:
AbstractPropertiesLoader,ChainedPropertiesLoader,FilePropertiesLoader,FilterPropertiesLoader,JndiPropertiesLoader
public interface PropertiesLoader
A PropertiesLoader loads PropertiesResources and returns the contained properties as a
Properties object.
The concrete implementation should specify whether it can be used in several threads concurrently or not.
- Author:
- sts
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionload(PropertiesResource propertiesResource) Loads the givenPropertiesResourceif present.loadAsMap(PropertiesResource propertiesResource) Loads the givenPropertiesResourceif present.
-
Method Details
-
load
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:
-
loadAsMap
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:
-