public class XmlClientConfigBuilder extends AbstractXmlConfigBuilder
ClientConfig
using XML.AbstractXmlConfigBuilder.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) |
XmlClientConfigBuilder(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, setPropertiesInternal
appendToken, getNamespaceType, getReleaseVersion, loadSchemaFile, 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()
public XmlClientConfigBuilder(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
AbstractXmlConfigBuilder
parse
in class AbstractXmlConfigBuilder
inputStream
- 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 AbstractXmlConfigBuilder
public ClientConfig build()
public ClientConfig build(ClassLoader classLoader)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.