public class XmlClientConfigBuilder extends AbstractXmlConfigBuilder
ClientConfig using XML.AbstractXmlConfigBuilder.ConfigTypedomLevel3| 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) |
XmlClientConfigBuilder(com.hazelcast.client.config.impl.XmlClientConfigLocator locator)
Constructs a
XmlClientConfigBuilder that loads the configuration
with the provided XmlClientConfigLocator. |
| Modifier and Type | Method and Description |
|---|---|
ClientConfig |
build() |
ClientConfig |
build(ClassLoader classLoader) |
protected AbstractXmlConfigBuilder.ConfigType |
getConfigType() |
protected Document |
parse(InputStream inputStream)
Reads XML from InputStream and parses.
|
XmlClientConfigBuilder |
setProperties(Properties properties) |
getProperties, process, setPropertiesInternalappendToken, getNamespaceType, getReleaseVersion, loadSchemaFile, schemaValidation, xmlToJavaNameshouldValidateTheSchemapublic XmlClientConfigBuilder(String resource) throws IOException
IOExceptionpublic XmlClientConfigBuilder(File file) throws IOException
IOExceptionpublic XmlClientConfigBuilder(URL url) throws IOException
IOExceptionpublic XmlClientConfigBuilder(InputStream in)
public XmlClientConfigBuilder()
@PrivateApi public XmlClientConfigBuilder(com.hazelcast.client.config.impl.XmlClientConfigLocator locator)
XmlClientConfigBuilder that loads the configuration
with the provided XmlClientConfigLocator.
If the provided XmlClientConfigLocator is null, a new
instance is created and the config is located in every possible
places. For these places, please see XmlClientConfigLocator.
If the provided XmlClientConfigLocator is not null, it
is expected that it already located the configuration XML to load
from. No further attempt to locate the configuration XML is made
if the configuration XML is not located already.
locator - the configured locator to useprotected Document parse(InputStream inputStream) throws Exception
AbstractXmlConfigBuilderparse in class AbstractXmlConfigBuilderinputStream - InputStream to read fromException - if the XML configuration cannot be parsed or is invalidpublic XmlClientConfigBuilder setProperties(Properties properties)
protected AbstractXmlConfigBuilder.ConfigType getConfigType()
getConfigType in class AbstractXmlConfigBuilderpublic ClientConfig build()
public ClientConfig build(ClassLoader classLoader)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.