Interface ConfigSource

All Known Implementing Classes:
CommandLineConfigSource, DirConfigSource, JettyBaseConfigSource, JettyHomeConfigSource

public interface ConfigSource
A Configuration Source
  • Method Summary

    Modifier and Type
    Method
    Description
    The list of Arguments for this ConfigSource
    The identifier for this source.
    Return the value of the specified property.
    The properties for this ConfigSource
    default Set<StartIni>
     
    int
    The weight of this source, used for proper ordering of the config source search order.
  • Method Details

    • getId

      String getId()
      The identifier for this source.

      Used in end-user display of the source.

      Returns:
      the configuration source identifier.
    • getWeight

      int getWeight()
      The weight of this source, used for proper ordering of the config source search order.

      Recommended Weights:

                 -1 = the command line
                  0 = the ${jetty.base} source
             [1..n] = include-jetty-dir entries from command line
           [n+1..n] = include-jetty-dir entries from start.ini (or start.d/*.ini)
            9999999 = the ${jetty.home} source
       
      Returns:
      the weight of the config source. (lower value is more important)
    • getArgs

      RawArgs getArgs()
      The list of Arguments for this ConfigSource
      Returns:
      the list of Arguments for this ConfigSource
    • getProps

      Props getProps()
      The properties for this ConfigSource
      Returns:
      the properties for this ConfigSource
    • getProperty

      String getProperty(String key)
      Return the value of the specified property.
      Parameters:
      key - the key to lookup
      Returns:
      the value of the property, or null if not found
    • getStartInis

      default Set<StartIni> getStartInis()