Class AbstractXmlConfigBuilder

    • Constructor Detail

      • AbstractXmlConfigBuilder

        public AbstractXmlConfigBuilder()
    • Method Detail

      • process

        protected void process​(org.w3c.dom.Node root)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parse

        protected abstract org.w3c.dom.Document parse​(java.io.InputStream inputStream)
                                               throws java.lang.Exception
        Reads XML from InputStream and parses.
        Parameters:
        inputStream - InputStream to read from
        Returns:
        Document after parsing XML
        Throws:
        java.lang.Exception - if the XML configuration cannot be parsed or is invalid
      • getProperties

        public 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)
      • setPropertiesInternal

        protected void setPropertiesInternal​(java.util.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