Class PropertyService


  • public class PropertyService
    extends Object
    Property services
    Author:
    Paul Rambags
    • Constructor Detail

      • PropertyService

        public PropertyService()
    • 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 - property
        defaultValue - default value, if property is not available
        Returns:
        the value of the property, or the default value if the property is not available