Interface Root

  • All Superinterfaces:
    Block
    All Known Subinterfaces:
    ConfigurationLayer
    All Known Implementing Classes:
    Configuration

    public interface Root
    extends Block
    This interface models the configuration root block, with global options.
    • Method Detail

      • getInitialVersion

        Version getInitialVersion()
                           throws DataAccessException,
                                  IllegalPropertyException
        Returns the initial version defined by this configuration to use when no past version is available in the commit history.
        Returns:
        the configured value for this option or null if the value hasn't been defined.
        Throws:
        DataAccessException - in case the option cannot be read or accessed.
        IllegalPropertyException - in case the option has been defined but has incorrect values or it can't be resolved.
      • getReleasePrefix

        String getReleasePrefix()
                         throws DataAccessException,
                                IllegalPropertyException
        Returns the prefix to use in release name generation as it's defined by this configuration.
        Returns:
        the configured value for this option or null if the value hasn't been defined.
        Throws:
        DataAccessException - in case the option cannot be read or accessed.
        IllegalPropertyException - in case the option has been defined but has incorrect values or it can't be resolved.
      • getReleaseLenient

        Boolean getReleaseLenient()
                           throws DataAccessException,
                                  IllegalPropertyException
        Returns the flag that enables tolerance in reading release names with arbitrary prefixes or extra non critical characters as it's defined by this configuration.
        Returns:
        the configured value for this option or null if the value hasn't been defined.
        Throws:
        DataAccessException - in case the option cannot be read or accessed.
        IllegalPropertyException - in case the option has been defined but has incorrect values or it can't be resolved.
      • getVerbosity

        Verbosity getVerbosity()
                        throws DataAccessException,
                               IllegalPropertyException
        Returns the logging verbosity level as it's defined by this configuration. Please note that the verbosity option is actually ignored in this library implementation as the event filtering based on the verbosity needs to be configured outside this library, depending on the logging framework deployed along with SLF4J. See here for more.
        Returns:
        the configured value for this option or null if the value hasn't been defined.
        Throws:
        DataAccessException - in case the option cannot be read or accessed.
        IllegalPropertyException - in case the option has been defined but has incorrect values or it can't be resolved.