Class AbstractPropertiesLoader
java.lang.Object
com.saperion.common.config.loader.AbstractPropertiesLoader
- All Implemented Interfaces:
PropertiesLoader
- Direct Known Subclasses:
ChainedPropertiesLoader,FilePropertiesLoader,FilterPropertiesLoader,JndiPropertiesLoader
This is the abstract superclass of all
PropertiesLoader instances.- Author:
- cmerkel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadAsMap(PropertiesResource propertiesResource) Loads the givenPropertiesResourceif present.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.saperion.common.config.loader.PropertiesLoader
load
-
Constructor Details
-
AbstractPropertiesLoader
public AbstractPropertiesLoader()
-
-
Method Details
-
loadAsMap
public Map<String,String> loadAsMap(PropertiesResource propertiesResource) throws ConfigurationException Description copied from interface:PropertiesLoaderLoads the givenPropertiesResourceif present. Returns the properties as aMapobject.- Specified by:
loadAsMapin interfacePropertiesLoader- Parameters:
propertiesResource- thePropertiesResourceto load.- Returns:
- the loaded
Map - Throws:
ConfigurationException- if thePropertiesResourcecould not be loaded.- See Also:
-