Class PropertyService
- java.lang.Object
-
- nl.dedicon.pipeline.braille.service.PropertyService
-
public class PropertyService extends Object
Property services- Author:
- Paul Rambags
-
-
Constructor Summary
Constructors Constructor Description PropertyService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetProperty(String key, String defaultValue)Get a property from the application.properties file.
-
-
-
Method Detail
-
getProperty
public static String getProperty(String key, String defaultValue)
Get a property from the application.properties file. The location of the application.properties file is determined by environment variable PIPELINE2_DEDICON_APPLICATION_PROPERTIES or system property org.daisy.pipeline.dedicon.application.properties- Parameters:
key- propertydefaultValue- default value, if property is not available- Returns:
- the value of the property, or the default value if the property is not available
-
-