Class XmlClientConfigBuilder


public class XmlClientConfigBuilder extends AbstractXmlConfigBuilder
Loads the ClientConfig using XML.
  • Constructor Details

    • XmlClientConfigBuilder

      public XmlClientConfigBuilder(String resource) throws IOException
      Throws:
      IOException
    • XmlClientConfigBuilder

      public XmlClientConfigBuilder(File file) throws IOException
      Throws:
      IOException
    • XmlClientConfigBuilder

      public XmlClientConfigBuilder(URL url) throws IOException
      Throws:
      IOException
    • XmlClientConfigBuilder

      public XmlClientConfigBuilder(InputStream in)
    • XmlClientConfigBuilder

      public XmlClientConfigBuilder()
      Loads the client config using the following resolution mechanism:
      1. first it checks if a system property 'hazelcast.client.config' is set. If it exist and it begins with 'classpath:', then a classpath resource is loaded. Else it will assume it is a file reference. The configuration file or resource will be loaded only if the postfix of its name ends with `.xml`.
      2. it checks if a hazelcast-client.xml is available in the working dir
      3. it checks if a hazelcast-client.xml is available on the classpath
      4. it loads the hazelcast-client-default.xml
    • XmlClientConfigBuilder

      @PrivateApi public XmlClientConfigBuilder(com.hazelcast.client.config.impl.XmlClientConfigLocator locator)
      Constructs a XmlClientConfigBuilder that loads the configuration with the provided XmlClientConfigLocator.

      If the provided XmlClientConfigLocator is null, a new instance is created and the config is located in every possible places. For these places, please see XmlClientConfigLocator.

      If the provided XmlClientConfigLocator is not null, it is expected that it already located the configuration XML to load from. No further attempt to locate the configuration XML is made if the configuration XML is not located already.

      Parameters:
      locator - the configured locator to use
  • Method Details