com.hazelcast.config
Class ClasspathXmlConfig

java.lang.Object
  extended by com.hazelcast.config.Config
      extended by com.hazelcast.config.ClasspathXmlConfig

public class ClasspathXmlConfig
extends Config

A Config which is initialized by loading an XML configuration file from the classpath.

See Also:
FileSystemXmlConfig

Constructor Summary
ClasspathXmlConfig(ClassLoader classLoader, String resource)
          Creates a config which is loaded from a classpath resource.
ClasspathXmlConfig(ClassLoader classLoader, String resource, Properties properties)
          Creates a config which is loaded from a classpath resource.
ClasspathXmlConfig(String resource)
          Creates a config which is loaded from a classpath resource using the Thread.currentThread contextClassLoader.
ClasspathXmlConfig(String resource, Properties properties)
          Creates a config which is loaded from a classpath resource using the Thread.currentThread contextClassLoader.
 
Method Summary
 
Methods inherited from class com.hazelcast.config.Config
addCacheConfig, addExecutorConfig, addJobTrackerConfig, addListConfig, addListenerConfig, addMapConfig, addMultiMapConfig, addQueueConfig, addReplicatedMapConfig, addSemaphoreConfig, addSetConfig, addTopicConfig, addWanReplicationConfig, findCacheConfig, findExecutorConfig, findJobTrackerConfig, findListConfig, findMapConfig, findMultiMapConfig, findQueueConfig, findReplicatedMapConfig, findSemaphoreConfig, findSetConfig, findTopicConfig, getCacheConfig, getCacheConfigs, getClassLoader, getConfigurationFile, getConfigurationUrl, getExecutorConfig, getExecutorConfigs, getGroupConfig, getInstanceName, getJobTrackerConfig, getJobTrackerConfigs, getLicenseKey, getListConfig, getListConfigs, getListenerConfigs, getManagedContext, getManagementCenterConfig, getMapConfig, getMapConfigs, getMemberAttributeConfig, getMultiMapConfig, getMultiMapConfigs, getNativeMemoryConfig, getNetworkConfig, getPartitionGroupConfig, getProperties, getProperty, getQueueConfig, getQueueConfigs, getReplicatedMapConfig, getReplicatedMapConfigs, getSecurityConfig, getSemaphoreConfig, getSemaphoreConfigs, getSerializationConfig, getServicesConfig, getSetConfig, getSetConfigs, getTopicConfig, getTopicConfigs, getUserContext, getWanReplicationConfig, getWanReplicationConfigs, isCompatible, nameMatches, setCacheConfigs, setClassLoader, setConfigurationFile, setConfigurationUrl, setExecutorConfigs, setGroupConfig, setInstanceName, setJobTrackerConfigs, setLicenseKey, setListConfigs, setListenerConfigs, setManagedContext, setManagementCenterConfig, setMapConfigs, setMemberAttributeConfig, setMultiMapConfigs, setNativeMemoryConfig, setNetworkConfig, setPartitionGroupConfig, setProperties, setProperty, setQueueConfigs, setReplicatedMapConfigs, setSecurityConfig, setSemaphoreConfigs, setSerializationConfig, setServicesConfig, setSetConfigs, setTopicConfigs, setUserContext, setWanReplicationConfigs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClasspathXmlConfig

public ClasspathXmlConfig(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 xml resource.
Throws:
IllegalArgumentException - if the resource could not be found.
HazelcastException - if the XML content is invalid

ClasspathXmlConfig

public ClasspathXmlConfig(String resource,
                          Properties properties)
Creates a config which is loaded from a classpath resource using the Thread.currentThread contextClassLoader.

Parameters:
resource - the xml resource.
properties - the Properties to resolve variables in the XML.
Throws:
IllegalArgumentException - if the resource could not be found or if properties is null.
HazelcastException - if the XML content is invalid

ClasspathXmlConfig

public ClasspathXmlConfig(ClassLoader classLoader,
                          String resource)
Creates a config which is loaded from a classpath resource. The System.properties are used to resolve variables in the XML.

Parameters:
classLoader - the ClassLoader used to load the resource.
resource - the classpath resource
Throws:
IllegalArgumentException - if classLoader or resource is null, or if the resource is not found.
HazelcastException - if the XML content is invalid

ClasspathXmlConfig

public ClasspathXmlConfig(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 classpath resource
properties - to properties used to resolve variables in the XML.
Throws:
IllegalArgumentException - if classLoader or resource is null, or if the resource is not found.
HazelcastException - if the XML content is invalid


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.