Class SystemConfiguration

  • All Implemented Interfaces:
    java.lang.Cloneable, Configuration

    public class SystemConfiguration
    extends MapConfiguration
    A configuration based on the system properties.
    Since:
    1.1
    Version:
    $Id: SystemConfiguration.java 1210204 2011-12-04 20:38:02Z oheger $
    Author:
    Emmanuel Bourg
    • Constructor Detail

      • SystemConfiguration

        public SystemConfiguration()
        Create a Configuration based on the system properties.
        See Also:
        System.getProperties()
    • Method Detail

      • setSystemProperties

        public static void setSystemProperties​(java.lang.String fileName)
                                        throws java.lang.Exception
        The method allows system properties to be set from a property file.
        Parameters:
        fileName - The name of the property file.
        Throws:
        java.lang.Exception - if an error occurs.
        Since:
        1.6
      • setSystemProperties

        public static void setSystemProperties​(java.lang.String basePath,
                                               java.lang.String fileName)
                                        throws java.lang.Exception
        The method allows system properties to be set from a property file.
        Parameters:
        basePath - The base path to look for the property file.
        fileName - The name of the property file.
        Throws:
        java.lang.Exception - if an error occurs.
        Since:
        1.6
      • setSystemProperties

        public static void setSystemProperties​(PropertiesConfiguration systemConfig)
        Set System properties from a configuration file.
        Parameters:
        systemConfig - The configuration containing the properties to be set.
        Since:
        1.6