Annotation Interface 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
    The path of the value in the configuration.
  • Element Details

    • value

      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