Package hudson.search
Class SearchFactory
- java.lang.Object
-
- hudson.search.SearchFactory
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class SearchFactory extends Object implements ExtensionPoint
Creates aSearchinstance for aSearchableModelObject.This allows you to plug in different backends to the search, such as full-text search, or more intelligent user-sensitive search, etc. Puts @
Extensionannotation on your implementation to have it registered.Right now, there's no user control over which
SearchFactorytakes priority, but we may do so later.- Since:
- 1.469
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SearchFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<SearchFactory>all()Returns all the registeredSearchFactoryinstances.abstract SearchcreateFor(SearchableModelObject owner)Creates aSearchobject.
-
-
-
Method Detail
-
createFor
public abstract Search createFor(SearchableModelObject owner)
Creates aSearchobject. This method needs to execute quickly (without actually executing any search), since it is created per incoming HTTP response.- Parameters:
owner- TheSearchableModelObjectobject for which we are creating the search. The returned object will provide the search for this object.- Returns:
- null if your factory isn't interested in creating a
Searchobject. The next factory will get a chance to act on it.
-
all
public static ExtensionList<SearchFactory> all()
Returns all the registeredSearchFactoryinstances.
-
-