Package io.joynr.runtime
Class PropertyLoader
- java.lang.Object
-
- io.joynr.runtime.PropertyLoader
-
public class PropertyLoader extends Object
Loads properties using this class's classloader- Author:
- david.katz
-
-
Constructor Summary
Constructors Constructor Description PropertyLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesgetPropertiesWithPattern(Properties originalProperties, String regex)static LowerCasePropertiesloadProperties(File file)static PropertiesloadProperties(String fileName)load properties from filestatic PropertiesloadProperties(Properties properties, String fileName)static Optional<InputStream>loadResource(String resourceName)
-
-
-
Method Detail
-
loadResource
public static Optional<InputStream> loadResource(String resourceName)
-
loadProperties
public static Properties loadProperties(String fileName)
load properties from file- Parameters:
fileName- The filename of the file in which the properties are stored- Returns:
- The loaded properties.
-
loadProperties
public static LowerCaseProperties loadProperties(File file)
-
loadProperties
public static Properties loadProperties(Properties properties, String fileName)
-
getPropertiesWithPattern
public static Properties getPropertiesWithPattern(Properties originalProperties, String regex)
-
-