Annotation Type Path


  • @Retention(RUNTIME)
    @Target({FIELD,TYPE})
    public @interface Path
    Indicates the path, in the config, of the annotated element. Unlike AdvancedPath, Path accepts a simple String, so it's not possible to use dots in key names (because dots are interpreted as a separator between each key). If you have a complicated path with dots in key names, use AdvancedPath instead of Path.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The path of the value in the configuration.
    • Element Detail

      • value

        java.lang.String value
        The path of the value in the configuration. Each key is separated by a dot.

        Use AdvancedPath if you have a key that contains dots.

        Returns:
        the path in the config