Class FileSystemXmlConfig


  • public class FileSystemXmlConfig
    extends Config
    A Config which includes functionality for loading itself from a XML configuration file.

    Unlike Config.loadFromFile(File) and its variants, a configuration constructed via FileSystemXmlConfig does not apply overrides found in environment variables/system properties.

    • Constructor Detail

      • FileSystemXmlConfig

        public FileSystemXmlConfig​(java.lang.String configFilename)
                            throws java.io.FileNotFoundException
        Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.
        Parameters:
        configFilename - the path of the Hazelcast xml configuration file
        Throws:
        java.lang.NullPointerException - if configFilename is null
        java.io.FileNotFoundException - if the file is not found
        InvalidConfigurationException - if the XML content is invalid
      • FileSystemXmlConfig

        public FileSystemXmlConfig​(java.lang.String configFilename,
                                   java.util.Properties properties)
                            throws java.io.FileNotFoundException
        Creates a Config based on a Hazelcast XML file.
        Parameters:
        configFilename - the path of the Hazelcast XML configuration file
        properties - the Properties to resolve variables in the XML
        Throws:
        java.io.FileNotFoundException - if the file is not found
        java.lang.NullPointerException - if configFilename is null
        java.lang.IllegalArgumentException - if properties is null
        InvalidConfigurationException - if the XML content is invalid
      • FileSystemXmlConfig

        public FileSystemXmlConfig​(java.io.File configFile)
                            throws java.io.FileNotFoundException
        Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.
        Parameters:
        configFile - the path of the Hazelcast XML configuration file
        Throws:
        java.io.FileNotFoundException - if the file doesn't exist
        InvalidConfigurationException - if the XML content is invalid
      • FileSystemXmlConfig

        public FileSystemXmlConfig​(java.io.File configFile,
                                   java.util.Properties properties)
                            throws java.io.FileNotFoundException
        Creates a Config based on a Hazelcast XML file.
        Parameters:
        configFile - the path of the Hazelcast xml configuration file
        properties - the Properties to resolve variables in the XML
        Throws:
        java.lang.IllegalArgumentException - if configFile or properties is null
        java.io.FileNotFoundException - if the file doesn't exist
        InvalidConfigurationException - if the XML content is invalid