Package com.atlassian.confluence.search
Class SearchResultRendererCache
java.lang.Object
com.atlassian.confluence.search.SearchResultRendererCache
The class caches the list of search result renderers installed in the system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the most current list of renderes.void
setPluginAccessor
(com.atlassian.plugin.PluginAccessor plugAccessor) Setter for the pluginAccessor that is needed to get hold of the plugins installed.void
updateCache
(boolean updateIfNull) Update the cache.
-
Constructor Details
-
SearchResultRendererCache
public SearchResultRendererCache()
-
-
Method Details
-
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.
-
updateCache
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.
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor plugAccessor) Setter for the pluginAccessor that is needed to get hold of the plugins installed.- Parameters:
plugAccessor
-
-