Class PropertiesClassPathSource
- java.lang.Object
-
- blog.softwaretester.properties.propertysource.PropertiesClassPathSource
-
- All Implemented Interfaces:
PropertySource
public final class PropertiesClassPathSource extends Object implements PropertySource
-
-
Constructor Summary
Constructors Constructor Description PropertiesClassPathSource(String propertiesFile)Constructor for the PropertiesClassPathSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getProperties()Get a string map containing all properties from the respectivePropertySource.
-
-
-
Constructor Detail
-
PropertiesClassPathSource
public PropertiesClassPathSource(String propertiesFile)
Constructor for the PropertiesClassPathSource.- Parameters:
propertiesFile- The path to the properties file inside the application's class path.
-
-
Method Detail
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:PropertySourceGet a string map containing all properties from the respectivePropertySource.- Specified by:
getPropertiesin interfacePropertySource- Returns:
- The string map.
-
-