Class ClientFailoverClasspathXmlConfig

java.lang.Object
com.hazelcast.client.config.ClientFailoverConfig
com.hazelcast.client.config.ClientFailoverClasspathXmlConfig

public class ClientFailoverClasspathXmlConfig extends ClientFailoverConfig
A ClientFailoverConfig which is initialized by loading an XML configuration file from the classpath.
  • Constructor Details

    • ClientFailoverClasspathXmlConfig

      public ClientFailoverClasspathXmlConfig(String resource)
      Creates a config which is loaded from a classpath resource using the Thread.currentThread() contextClassLoader. The System.properties are used to resolve variables in the XML.
      Parameters:
      resource - the resource, an XML configuration file from the classpath, without the "classpath:" prefix
      Throws:
      IllegalArgumentException - if the resource could not be found
      InvalidConfigurationException - if the XML content is invalid
    • ClientFailoverClasspathXmlConfig

      public ClientFailoverClasspathXmlConfig(String resource, Properties properties)
      Creates a config which is loaded from a classpath resource using the Thread.currentThread() contextClassLoader.
      Parameters:
      resource - the resource, an XML configuration file from the classpath, without the "classpath:" prefix
      properties - the Properties to resolve variables in the XML
      Throws:
      IllegalArgumentException - if the resource could not be found or if properties is null
      InvalidConfigurationException - if the XML content is invalid
    • ClientFailoverClasspathXmlConfig

      public ClientFailoverClasspathXmlConfig(ClassLoader classLoader, String resource, Properties properties)
      Creates a config which is loaded from a classpath resource.
      Parameters:
      classLoader - the ClassLoader used to load the resource
      resource - the resource, an XML configuration file from the classpath, without the "classpath:" prefix
      properties - the properties used to resolve variables in the XML
      Throws:
      IllegalArgumentException - if classLoader or resource is null, or if the resource is not found
      InvalidConfigurationException - if the XML content is invalid