Package com.hazelcast.config
Class AbstractXmlConfigBuilder
java.lang.Object
com.hazelcast.config.AbstractConfigBuilder
com.hazelcast.config.AbstractXmlConfigHelper
com.hazelcast.config.AbstractXmlConfigBuilder
- Direct Known Subclasses:
XmlClientConfigBuilder
,XmlClientFailoverConfigBuilder
Contains logic for replacing system variables in the XML file and importing XML files from different locations.
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.hazelcast.config.AbstractXmlConfigHelper
domLevel3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractXmlConfigBuilder.ConfigType
Gets the current used properties.protected abstract Document
parse
(InputStream inputStream) Reads XML from InputStream and parses.protected void
protected void
setPropertiesInternal
(Properties properties) Sets the used properties.Methods inherited from class com.hazelcast.config.AbstractXmlConfigHelper
getNamespaceType, getReleaseVersion, loadSchemaFile, schemaValidation
Methods inherited from class com.hazelcast.config.AbstractConfigBuilder
shouldValidateTheSchema
-
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
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
-