public class CacheBackedLuceneSearchMapperRegistry extends Object implements LuceneSearchMapperRegistry
A search mapper registry that operates on a cache only. The purpose of this cache is to minimise lookups against the plugin subsystem. If a mapper cannot be found in the cache, this registry currently does not fall back to looking it up in the actual plugin subsystem.
This cache is initialised on the very first search mapper lookup and is
only updated in response to a plugin event (see LuceneSearchMapperRegistryCacheUpdateListener
).
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.plugin.PluginAccessor |
pluginAccessor |
Constructor and Description |
---|
CacheBackedLuceneSearchMapperRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
LuceneQueryMapper |
getQueryMapper(String key) |
LuceneResultFilterMapper |
getResultFilterMapper(String key) |
LuceneSearchFilterMapper |
getSearchFilterMapper(String key) |
LuceneSortMapper |
getSortMapper(String key) |
void |
synchronizeModuleDescriptorsCache()
Initialise or refresh the cache of lucene mapper module descriptors from the plugin subsystem
|
public CacheBackedLuceneSearchMapperRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor)
public LuceneQueryMapper getQueryMapper(String key)
getQueryMapper
in interface LuceneSearchMapperRegistry
public LuceneSortMapper getSortMapper(String key)
getSortMapper
in interface LuceneSearchMapperRegistry
public LuceneResultFilterMapper getResultFilterMapper(String key)
getResultFilterMapper
in interface LuceneSearchMapperRegistry
public LuceneSearchFilterMapper getSearchFilterMapper(String key)
getSearchFilterMapper
in interface LuceneSearchMapperRegistry
key
- the key of the SearchFilter
to fetch a mapper forpublic void synchronizeModuleDescriptorsCache()
Copyright © 2003–2015 Atlassian. All rights reserved.