Class OBPropertiesProvider


  • public class OBPropertiesProvider
    extends Object
    This class implements a central location where the Openbravo.properties are read and made available for the rest of the application. IMPORTANT NOTE: while properties are being set only DEBUG level messages can be logged to prevent recursive invocations due to OBRebuildAppender. See issue #29608
    Author:
    mtaal
    • Constructor Detail

      • OBPropertiesProvider

        public OBPropertiesProvider()
    • Method Detail

      • isFriendlyWarnings

        public static boolean isFriendlyWarnings()
      • setFriendlyWarnings

        public static void setFriendlyWarnings​(boolean doFriendlyWarnings)
      • getOpenbravoProperties

        public Properties getOpenbravoProperties()
      • getFormatXMLDocument

        public org.dom4j.Document getFormatXMLDocument()
      • setFormatXML

        public void setFormatXML​(InputStream is)
      • setProperties

        public void setProperties​(InputStream is)
      • setProperties

        public void setProperties​(Properties props)
      • setProperties

        public void setProperties​(String fileLocation)
      • getBooleanProperty

        public boolean getBooleanProperty​(String key)
        Looks for a boolean property key and return true in case its value is true or yes and false other case.