Class AbstractYamlConfigBuilder

    • Constructor Detail

      • AbstractYamlConfigBuilder

        public AbstractYamlConfigBuilder()
    • Method Detail

      • getProperties

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

        protected void importDocuments​(com.hazelcast.internal.yaml.YamlNode imdgRoot)
                                throws java.lang.Exception
        Imports external YAML documents into the provided main YAML document.

        Since the YAML configuration uses mappings, in order to keep the configuration defined in the main YAML document the imported document (the source) will be actually merged into the main document (the target). An example to it is defining one map in the main document, and another map in the imported document. In this case the documents should be merged to include both map configurations under the root/map node.

        Parameters:
        imdgRoot - The root of the main YAML configuration document
        Throws:
        java.lang.Exception - If a YAML document to be imported can't be loaded
        See Also:
        merge(YamlNode, YamlNode)
      • getConfigRoot

        protected abstract java.lang.String getConfigRoot()
      • replaceVariables

        protected void replaceVariables​(org.w3c.dom.Node node)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setPropertiesInternal

        protected void setPropertiesInternal​(java.util.Properties properties)