Class ConfigConstants


  • public class ConfigConstants
    extends Object
    This class provides constants relevant for the configuration of openHAB
    Author:
    Kai Kreuzer - Initial contribution
    • Field Detail

      • USERDATA_DIR_PROG_ARGUMENT

        public static final String USERDATA_DIR_PROG_ARGUMENT
        The program argument name for setting the user data directory path
        See Also:
        Constant Field Values
      • CONFIG_DIR_PROG_ARGUMENT

        public static final String CONFIG_DIR_PROG_ARGUMENT
        The program argument name for setting the main config directory path
        See Also:
        Constant Field Values
      • DEFAULT_CONFIG_FOLDER

        public static final String DEFAULT_CONFIG_FOLDER
        The default main configuration directory name
        See Also:
        Constant Field Values
      • DEFAULT_USERDATA_FOLDER

        public static final String DEFAULT_USERDATA_FOLDER
        The default user data directory name
        See Also:
        Constant Field Values
      • SERVICE_CONTEXT

        public static final String SERVICE_CONTEXT
        The property to recognize a service instance created by a service factory
        See Also:
        Constant Field Values
      • SERVICE_CONTEXT_MARKER

        public static final String SERVICE_CONTEXT_MARKER
        The property to separate service PIDs from their contexts
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigConstants

        public ConfigConstants()
    • Method Detail

      • getConfigFolder

        public static String getConfigFolder()
        Returns the configuration folder path name. The main config folder <smarthome>/config can be overwritten by setting the System property smarthome.configdir.
        Returns:
        the configuration folder path name
      • getUserDataFolder

        public static String getUserDataFolder()
        Returns the user data folder path name. The main user data folder <smarthome>/userdata can be overwritten by setting the System property smarthome.userdata.
        Returns:
        the user data folder path name