All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.search.QuickSilver Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 *
 * Copyright (c) 2004-2009 Oracle Corporation.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * 
 *    Kohsuke Kawaguchi
 *
 *
 *******************************************************************************/ 

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