com.atlassian.confluence.search
Class SearchResultRendererCache

java.lang.Object
  extended by com.atlassian.confluence.search.SearchResultRendererCache

public class SearchResultRendererCache
extends Object

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


Constructor Summary
SearchResultRendererCache()
           
 
Method Summary
 List<SearchResultRenderer> getSearchReslultRenderers()
          Return 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultRendererCache

public SearchResultRendererCache()
Method Detail

getSearchReslultRenderers

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.

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 -


Copyright © 2003-2013 Atlassian. All Rights Reserved.