public class SearchManager
extends java.lang.Object
Searchable
objects to the Spark
search service. This allows for a pluggable search architecture by simply plugging into the
find area of the bottom of Spark.Modifier and Type | Method and Description |
---|---|
void |
addSearchService(Searchable searchable)
Add your own
Searchable service.The UI will take
immediate effect to indicate that this search service is now available as
an option. |
static SearchManager |
getInstance()
Returns the singleton instance of
SearchManager ,
creating it if necessary. |
java.util.Collection<Searchable> |
getSearchServices()
Returns all registered search services.
|
java.util.Collection<java.lang.String> |
getSearchServicesAsString()
Returns all registered search services.
|
SearchService |
getSearchServiceUI() |
void |
removeSearchService(Searchable searchable)
Remove the
Searchable service. |
public static SearchManager getInstance()
SearchManager
,
creating it if necessary.
SearchManager
public void addSearchService(Searchable searchable)
Searchable
service.The UI will take
immediate effect to indicate that this search service is now available as
an option.searchable
- the search service.public void removeSearchService(Searchable searchable)
Searchable
service. The UI will take
immediate effect to indicate that this search service is no longer
an option.searchable
- the searchable object to remove.public java.util.Collection<Searchable> getSearchServices()
public java.util.Collection<java.lang.String> getSearchServicesAsString()
public SearchService getSearchServiceUI()