Package com.hazelcast.client.config
Class ClientClasspathXmlConfig
- java.lang.Object
-
- com.hazelcast.client.config.ClientConfig
-
- com.hazelcast.client.config.ClientClasspathXmlConfig
-
public class ClientClasspathXmlConfig extends ClientConfig
AClientConfig
which is initialized by loading an XML configuration file from the classpath.
-
-
Constructor Summary
Constructors Constructor Description ClientClasspathXmlConfig(java.lang.ClassLoader classLoader, java.lang.String resource, java.util.Properties properties)
Creates a config which is loaded from a classpath resource.ClientClasspathXmlConfig(java.lang.String resource)
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.ClientClasspathXmlConfig(java.lang.String resource, java.util.Properties properties)
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.
-
Method Summary
-
Methods inherited from class com.hazelcast.client.config.ClientConfig
addFlakeIdGeneratorConfig, addLabel, addListenerConfig, addNearCacheConfig, addProxyFactoryConfig, addQueryCacheConfig, addReliableTopicConfig, equals, findFlakeIdGeneratorConfig, getClassLoader, getClusterName, getConfigPatternMatcher, getConnectionStrategyConfig, getFlakeIdGeneratorConfig, getFlakeIdGeneratorConfigMap, getInstanceName, getInstanceTrackingConfig, getLabels, getListenerConfigs, getLoadBalancer, getLoadBalancerClassName, getManagedContext, getMetricsConfig, getNativeMemoryConfig, getNearCacheConfig, getNearCacheConfigMap, getNetworkConfig, getOrCreateQueryCacheConfig, getOrNullQueryCacheConfig, getProperties, getProperty, getProxyFactoryConfigs, getQueryCacheConfigs, getReliableTopicConfig, getReliableTopicConfigMap, getSecurityConfig, getSerializationConfig, getSqlConfig, getTpcConfig, getUserCodeDeploymentConfig, getUserContext, hashCode, isBackupAckToClientEnabled, load, setBackupAckToClientEnabled, setClassLoader, setClusterName, setConfigPatternMatcher, setConnectionStrategyConfig, setCredentials, setFlakeIdGeneratorConfigMap, setInstanceName, setInstanceTrackingConfig, setLabels, setListenerConfigs, setLoadBalancer, setLoadBalancerClassName, setManagedContext, setMetricsConfig, setNativeMemoryConfig, setNearCacheConfigMap, setNetworkConfig, setProperties, setProperty, setProxyFactoryConfigs, setQueryCacheConfigs, setReliableTopicConfigMap, setSecurityConfig, setSerializationConfig, setSqlConfig, setTpcConfig, setUserCodeDeploymentConfig, setUserContext, toString
-
-
-
-
Constructor Detail
-
ClientClasspathXmlConfig
public ClientClasspathXmlConfig(java.lang.String resource)
Creates a config which is loaded from a classpath resource using theThread.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:
java.lang.IllegalArgumentException
- if the resource could not be foundInvalidConfigurationException
- if the XML content is invalid
-
ClientClasspathXmlConfig
public ClientClasspathXmlConfig(java.lang.String resource, java.util.Properties properties)
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.- Parameters:
resource
- the resource, an XML configuration file from the classpath, without the "classpath:" prefixproperties
- the Properties to resolve variables in the XML- Throws:
java.lang.IllegalArgumentException
- if the resource could not be found or if properties isnull
InvalidConfigurationException
- if the XML content is invalid
-
ClientClasspathXmlConfig
public ClientClasspathXmlConfig(java.lang.ClassLoader classLoader, java.lang.String resource, java.util.Properties properties)
Creates a config which is loaded from a classpath resource.- Parameters:
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 XML- Throws:
java.lang.IllegalArgumentException
- if classLoader or resource isnull
, or if the resource is not foundInvalidConfigurationException
- if the XML content is invalid
-
-