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 LuceneSearchMapperRegistrypublic LuceneSortMapper getSortMapper(String key)
getSortMapper in interface LuceneSearchMapperRegistrypublic LuceneResultFilterMapper getResultFilterMapper(String key)
getResultFilterMapper in interface LuceneSearchMapperRegistrypublic LuceneSearchFilterMapper getSearchFilterMapper(String key)
getSearchFilterMapper in interface LuceneSearchMapperRegistrykey - the key of the SearchFilter to fetch a mapper forpublic void synchronizeModuleDescriptorsCache()
Copyright © 2003–2019 Atlassian. All rights reserved.