Class InMemoryXmlConfig


  • public class InMemoryXmlConfig
    extends Config
    Creates a Config loaded from an in-memory Hazelcast XML String.

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

    • Constructor Detail

      • InMemoryXmlConfig

        public InMemoryXmlConfig​(java.lang.String xml)
        Creates a Config from the provided XML string and uses the System.properties to resolve variables in the XML.
        Parameters:
        xml - the XML content as a Hazelcast XML String
        Throws:
        java.lang.IllegalArgumentException - if the XML is null or empty
        InvalidConfigurationException - if the XML content is invalid
      • InMemoryXmlConfig

        public InMemoryXmlConfig​(java.lang.String xml,
                                 java.util.Properties properties)
        Creates a Config from the provided XML string and properties to resolve the variables in the XML.
        Parameters:
        xml - the XML content as a Hazelcast XML String
        Throws:
        java.lang.IllegalArgumentException - if the XML is null or empty or if properties is null
        InvalidConfigurationException - if the XML content is invalid