Class DefaultConfiguration

    • Constructor Detail

      • DefaultConfiguration

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

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

      • getAttributeNames

        public String[] getAttributeNames()
        Description copied from interface: Configuration
        The set of attribute names.
        Specified by:
        getAttributeNames in interface Configuration
        Returns:
        The set of attribute names, never null.
      • getName

        public 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

        public void addAttribute​(String attributeName,
                                 String value)
        Adds an attribute to this configuration.
        Parameters:
        attributeName - the name of the attribute.
        value - the value of the attribute.
      • addMessage

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

        public Map<String,​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
      • getThreadModeSettings

        public ThreadModeSettings getThreadModeSettings()
        Gets the thread mode configuration.
        Returns:
        the thread mode configuration.