Class DefaultConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.String attributeName, java.lang.String value)
      Deprecated.
      This shall be removed in future releases.
      void addChild​(Configuration configuration)
      Makes a configuration a child of this configuration.
      void addMessage​(java.lang.String key, java.lang.String value)
      Adds a custom message to this configuration.
      void addProperty​(java.lang.String propertyName, java.lang.String value)
      Adds n property to this configuration.
      java.lang.String getAttribute​(java.lang.String attributeName)
      The attribute value for an attribute name.
      java.lang.String[] getAttributeNames()
      The set of attribute names.
      Configuration[] getChildren()
      The set of child configurations.
      java.util.Map<java.lang.String,​java.lang.String> getMessages()
      Returns an unmodifiable map instance containing the custom messages for this configuration.
      java.lang.String getName()
      The name of this configuration.
      java.lang.String getProperty​(java.lang.String propertyName)
      The property value for property name.
      java.lang.String[] getPropertyNames()
      The set of property names.
      ThreadModeSettings getThreadModeSettings()
      Gets the thread mode configuration.
      void removeChild​(Configuration configuration)
      Removes a child of this configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultConfiguration

        public DefaultConfiguration​(java.lang.String name)
        Instantiates a DefaultConfiguration.
        Parameters:
        name - the name for this DefaultConfiguration.
      • DefaultConfiguration

        public DefaultConfiguration​(java.lang.String name,
                                    ThreadModeSettings threadModeSettings)
        Instantiates a DefaultConfiguration.
        Parameters:
        name - the name for this DefaultConfiguration.
        threadModeSettings - the thread mode configuration.
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Configuration
        The name of this configuration.
        Specified by:
        getName in interface Configuration
        Returns:
        The name of this configuration.
      • addChild

        public void addChild​(Configuration configuration)
        Makes a configuration a child of this configuration.
        Parameters:
        configuration - the child configuration.
      • removeChild

        public void removeChild​(Configuration configuration)
        Removes a child of this configuration.
        Parameters:
        configuration - the child configuration to remove.
      • addAttribute

        @Deprecated(since="8.45")
        public void addAttribute​(java.lang.String attributeName,
                                 java.lang.String value)
        Deprecated.
        This shall be removed in future releases. Please use addProperty(String propertyName, String value) instead.
        Adds n property to this configuration.
        Parameters:
        attributeName - the name of the property.
        value - the value of the property.
      • addProperty

        public void addProperty​(java.lang.String propertyName,
                                java.lang.String value)
        Adds n property to this configuration.
        Parameters:
        propertyName - the name of the property.
        value - the value of the property.
      • addMessage

        public void addMessage​(java.lang.String key,
                               java.lang.String value)
        Adds a custom message to this configuration.
        Parameters:
        key - the message key
        value - the custom message pattern
      • getMessages

        public java.util.Map<java.lang.String,​java.lang.String> getMessages()
        Returns an unmodifiable map instance containing the custom messages for this configuration.
        Specified by:
        getMessages in interface Configuration
        Returns:
        unmodifiable map containing custom messages