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.
  • Constructor Details

    • AbstractXmlConfigBuilder

      public AbstractXmlConfigBuilder()
  • Method Details

    • process

      protected void process​(Node root) throws Exception
      Throws:
      Exception
    • parse

      protected abstract Document parse​(InputStream inputStream) throws Exception
      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

      public Properties getProperties()
      Gets the current used properties. Can be null if no properties are set.
      Returns:
      the current used properties
      See Also:
      setPropertiesInternal(Properties)
    • setPropertiesInternal

      protected void setPropertiesInternal​(Properties properties)
      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

      protected abstract AbstractXmlConfigBuilder.ConfigType getConfigType()
      Overrides:
      getConfigType in class AbstractXmlConfigHelper
      Returns:
      ConfigType of current config class as enum value