
hudson.search.QuickSilver Maven / Gradle / Ivy
package hudson.search;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
/**
* Indicates a {@link SearchItem} field/getter.
*
*
* Fields/getters annotated with this annotation must:
*
* - be on the class that extends from {@link SearchableModelObject}.
*
- have the return type / field type of {@link SearchableModelObject} (or its subtype.)
*
*
*
* Such getter/field indicates an edge in the search graph, and will be added
* automatically by {@link SearchIndexBuilder#addAllAnnotations(SearchableModelObject)}
* to a search index.
*
* @author Kohsuke Kawaguchi
*/
@Retention(RUNTIME)
@Target({METHOD, FIELD})
public @interface QuickSilver {
String[] value() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy