Package io.airlift.configuration
Class ConfigurationLoader
- java.lang.Object
-
- io.airlift.configuration.ConfigurationLoader
-
public final class ConfigurationLoader extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>getSystemProperties()static Map<String,String>loadProperties()static Map<String,String>loadPropertiesFrom(String path)Loads properties from the given file
-
-
-
Method Detail
-
loadProperties
public static Map<String,String> loadProperties() throws IOException
- Throws:
IOException
-
loadPropertiesFrom
public static Map<String,String> loadPropertiesFrom(String path) throws IOException
Loads properties from the given file- Parameters:
path- file path- Returns:
- properties
- Throws:
IOException- errors
-
-