Class InMemoryXmlConfig

java.lang.Object
com.hazelcast.config.Config
com.hazelcast.config.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 Details

    • InMemoryXmlConfig

      public InMemoryXmlConfig(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:
      IllegalArgumentException - if the XML is null or empty
      InvalidConfigurationException - if the XML content is invalid
    • InMemoryXmlConfig

      public InMemoryXmlConfig(String xml, 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:
      IllegalArgumentException - if the XML is null or empty or if properties is null
      InvalidConfigurationException - if the XML content is invalid