Annotation Interface Resource


@Target({PARAMETER,FIELD}) @Retention(RUNTIME) @Documented public @interface Resource
Annotation used by the ResourcesExtension to annotate fields and parameters that should be populated with resource paths or data.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The resource classpath path.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the SerdesProvider to be used when deserializing an object (see ResourcesExtension for details).
  • Element Details

    • value

      String value
      The resource classpath path.
      Returns:
      the path to the resource relative to the classpath