public class ClientFailoverClasspathXmlConfig extends ClientFailoverConfig
ClientFailoverConfig
which is initialized by loading an XML
configuration file from the classpath.Constructor and Description |
---|
ClientFailoverClasspathXmlConfig(ClassLoader classLoader,
String resource,
Properties properties)
Creates a config which is loaded from a classpath resource.
|
ClientFailoverClasspathXmlConfig(String resource)
Creates a config which is loaded from a classpath resource using the
Thread.currentThread() contextClassLoader. |
ClientFailoverClasspathXmlConfig(String resource,
Properties properties)
Creates a config which is loaded from a classpath resource using the
Thread.currentThread() contextClassLoader. |
addClientConfig, getClientConfigs, getTryCount, load, setClientConfigs, setTryCount
public ClientFailoverClasspathXmlConfig(String resource)
Thread.currentThread()
contextClassLoader. The System.properties
are used to resolve variables in the XML.resource
- the resource, an XML configuration file from the classpath,
without the "classpath:" prefixIllegalArgumentException
- if the resource could not be foundInvalidConfigurationException
- if the XML content is invalidpublic ClientFailoverClasspathXmlConfig(String resource, Properties properties)
Thread.currentThread()
contextClassLoader.resource
- the resource, an XML configuration file from the classpath,
without the "classpath:" prefixproperties
- the Properties to resolve variables in the XMLIllegalArgumentException
- if the resource could not be found or if properties is null
InvalidConfigurationException
- if the XML content is invalidpublic ClientFailoverClasspathXmlConfig(ClassLoader classLoader, String resource, Properties properties)
classLoader
- the ClassLoader used to load the resourceresource
- the resource, an XML configuration file from the classpath,
without the "classpath:" prefixproperties
- the properties used to resolve variables in the XMLIllegalArgumentException
- if classLoader or resource is null
, or if the resource is not foundInvalidConfigurationException
- if the XML content is invalidCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.