public class

SearchResultRendererCache

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.search.SearchResultRendererCache

Class Overview

The class caches the list of search result renderers installed in the system.

Summary

Public Constructors
SearchResultRendererCache()
Public Methods
List<SearchResultRenderer> getSearchReslultRenderers()
Return the most current list of renderes.
void setPluginAccessor(PluginAccessor plugAccessor)
Setter for the pluginAccessor that is needed to get hold of the plugins installed.
void updateCache(boolean updateIfNull)
Update the cache.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SearchResultRendererCache ()

Public Methods

public List<SearchResultRenderer> getSearchReslultRenderers ()

Return the most current list of renderes. The list is unmodifiable. The list is lazily initialized so the first call after startup will be slower than any subsequent calls.

Returns
  • unmodifiable list with all renderers. This list is zero length or longer depending on how many renderers are installed.

public void setPluginAccessor (PluginAccessor plugAccessor)

Setter for the pluginAccessor that is needed to get hold of the plugins installed.

public void updateCache (boolean updateIfNull)

Update the cache. This method is called by event listeners and should in general not be called by anyone else. The flag indicates if the list should be initialized if it has not been so already. IF the list is intilazied this method will always update the list regardless of the parameter.

Parameters
updateIfNull if true always update the list. If false only update the list if it has already been initialized, however if the list is already initialzed this parameter is ignored.