Annotation Interface ConfigFile


@Target(PARAMETER) @Retention(RUNTIME) public @interface ConfigFile
Marks a parameter as a configuration file to be fetched from the code repository, and optionally (if the parameter type is different from String) deserialized using Jackson.

Configuration files are always retrieved from the default branch, but there is some flexibility as to which repository the files are retrieved from in the case of forks, see source().

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Which repository to extract a configuration file from.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      The path to the file in the code repository, either absolute (if it starts with /) or relative to /.github/ (if it doesn't start with /).