Annotation Type Indexed


@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Indexed
Annotation that tells the resource loader to create a searchable index for the value returned by this method.

Attach to a getter method or a public field.

By default, the index name is taken from the getter method name, without "get", or the field's name.

Author:
Matthew Tropiano
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Index name.
  • Element Details

    • value

      String value
      Index name.
      Returns:
      the name to use in the resource index.
      Default:
      ""