public class XmlConfigBuilder extends AbstractXmlConfigHelper implements ConfigBuilder
ConfigBuilder
implementation.AbstractXmlConfigHelper.IterableNodeList
domLevel3
Constructor and Description |
---|
XmlConfigBuilder()
Constructs a XmlConfigBuilder that tries to find a usable XML configuration file.
|
XmlConfigBuilder(InputStream inputStream)
Constructs a XmlConfigBuilder that reads from the given InputStream.
|
XmlConfigBuilder(String xmlFileName)
Constructs a XmlConfigBuilder that reads from the provided file.
|
XmlConfigBuilder(URL url)
Constructs a XMLConfigBuilder that read from the given URL
|
Modifier and Type | Method and Description |
---|---|
Config |
build()
Builds Config object.
|
Properties |
getProperties()
Gets the current used properties.
|
XmlConfigBuilder |
setProperties(Properties properties)
Sets the used properties.
|
appendToken, checkTrue, cleanNodeName, cleanNodeName, fillDataSerializableFactories, fillNativeMemoryConfig, fillPortableFactories, fillProperties, fillSerializers, getAttribute, getIntegerValue, getLongValue, getTextContent, hasTextContent, parseSerialization, parseSocketInterceptorConfig, xmlToJavaName
public XmlConfigBuilder(String xmlFileName) throws FileNotFoundException
xmlFileName
- the name of the XML fileFileNotFoundException
- if the file can't be found.public XmlConfigBuilder(InputStream inputStream)
inputStream
- the InputStream containing the XML configuration.IllegalArgumentException
- if inputStream is null.public XmlConfigBuilder(URL url) throws IOException
url
- IOException
public XmlConfigBuilder()
public Properties getProperties()
setProperties(java.util.Properties)
public XmlConfigBuilder setProperties(Properties properties)
properties
- the new properties.public Config build()
ConfigBuilder
build
in interface ConfigBuilder
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.