Package com.hazelcast.config
Class AbstractXmlConfigBuilder
java.lang.Object
com.hazelcast.config.AbstractXmlConfigHelper
com.hazelcast.config.AbstractXmlConfigBuilder
- Direct Known Subclasses:
XmlClientConfigBuilder
,XmlClientFailoverConfigBuilder
,XmlConfigBuilder
public abstract class AbstractXmlConfigBuilder extends AbstractXmlConfigHelper
Contains logic for replacing system variables in the XML file and importing XML files from different locations.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractXmlConfigBuilder.ConfigType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractXmlConfigBuilder()
-
Method Summary
Modifier and Type Method Description protected abstract AbstractXmlConfigBuilder.ConfigType
getConfigType()
Properties
getProperties()
Gets the current used properties.protected abstract Document
parse(InputStream inputStream)
Reads XML from InputStream and parses.protected void
process(Node root)
protected void
setPropertiesInternal(Properties properties)
Sets the used properties.Methods inherited from class com.hazelcast.config.AbstractXmlConfigHelper
appendToken, getNamespaceType, getReleaseVersion, loadSchemaFile, schemaValidation, xmlToJavaName
-
Constructor Details
-
AbstractXmlConfigBuilder
public AbstractXmlConfigBuilder()
-
-
Method Details
-
process
- Throws:
Exception
-
parse
Reads XML from InputStream and parses.- Parameters:
inputStream
-InputStream
to read from- Returns:
- Document after parsing XML
- Throws:
Exception
- if the XML configuration cannot be parsed or is invalid
-
getProperties
Gets the current used properties. Can be null if no properties are set.- Returns:
- the current used properties
- See Also:
setPropertiesInternal(Properties)
-
setPropertiesInternal
Sets the used properties. Can be null if no properties should be used.Properties are used to resolve ${variable} occurrences in the XML file.
- Parameters:
properties
- the new properties
-
getConfigType
- Overrides:
getConfigType
in classAbstractXmlConfigHelper
- Returns:
- ConfigType of current config class as enum value
-