public class XmlClientConfigBuilder extends AbstractConfigBuilder
ClientConfig
using XML.AbstractConfigBuilder.ConfigType
domLevel3
Constructor and Description |
---|
XmlClientConfigBuilder()
Loads the client config using the following resolution mechanism:
first it checks if a system property 'hazelcast.client.config' is set.
|
XmlClientConfigBuilder(File file) |
XmlClientConfigBuilder(InputStream in) |
XmlClientConfigBuilder(String resource) |
XmlClientConfigBuilder(URL url) |
Modifier and Type | Method and Description |
---|---|
ClientConfig |
build() |
ClientConfig |
build(ClassLoader classLoader) |
protected Properties |
getProperties() |
protected AbstractConfigBuilder.ConfigType |
getXmlType() |
protected Document |
parse(InputStream inputStream)
Reads XML from InputStream and parses.
|
void |
setProperties(Properties properties) |
process
appendToken, asElementIterable, childElements, cleanNodeName, fillDataSerializableFactories, fillNativeMemoryConfig, fillPortableFactories, fillProperties, fillProperties, fillSerializers, getAttribute, getBooleanValue, getIntegerValue, getLongValue, getNamespaceType, getReleaseVersion, getTextContent, hasTextContent, loadSchemaFile, parseSerialization, parseSocketInterceptorConfig, schemaValidation, xmlToJavaName
public XmlClientConfigBuilder(String resource) throws IOException
IOException
public XmlClientConfigBuilder(File file) throws IOException
IOException
public XmlClientConfigBuilder(URL url) throws IOException
IOException
public XmlClientConfigBuilder(InputStream in)
public XmlClientConfigBuilder()
protected Document parse(InputStream inputStream) throws Exception
AbstractConfigBuilder
parse
in class AbstractConfigBuilder
inputStream
- InputStream
to read fromException
- if the XML configuration cannot be parsed or is invalidprotected Properties getProperties()
getProperties
in class AbstractConfigBuilder
public void setProperties(Properties properties)
protected AbstractConfigBuilder.ConfigType getXmlType()
getXmlType
in class AbstractConfigBuilder
public ClientConfig build()
public ClientConfig build(ClassLoader classLoader)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.