PluginAccessor.getEnabledModuleDescriptorsByClass(Class)
are cached now.@Deprecated public class SearchMappersThreadLocal extends Object
Constructor and Description |
---|
SearchMappersThreadLocal()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearAllMappers()
Deprecated.
|
static void |
findAndSetMappers(com.atlassian.plugin.PluginAccessor pluginAccessor)
Deprecated.
Using the supplied PluginAccessor find all of the currently available search mappers and set them on
the thread local.
|
static Map<String,LuceneQueryMapper> |
getQueryMappers()
Deprecated.
|
static Map<String,LuceneResultFilterMapper> |
getResultFilterMappers()
Deprecated.
|
static Map<String,LuceneSearchFilterMapper> |
getSearchFilterMappers()
Deprecated.
|
static Map<String,LuceneSortMapper> |
getSortMappers()
Deprecated.
|
public static void findAndSetMappers(com.atlassian.plugin.PluginAccessor pluginAccessor)
Using the supplied PluginAccessor find all of the currently available search mappers and set them on the thread local.
As an optimisation over calling the plugin system 3 times, once for each category of mapper required, this method instead gets all enabled plugin modules and separates them itself into the 3 different category (this should result in a total of one less iteration over the plugins).
pluginAccessor
- the PluginAccessor to be used to find the available mapper modules.public static Map<String,LuceneQueryMapper> getQueryMappers()
public static Map<String,LuceneSortMapper> getSortMappers()
public static Map<String,LuceneResultFilterMapper> getResultFilterMappers()
public static Map<String,LuceneSearchFilterMapper> getSearchFilterMappers()
public static void clearAllMappers()
Copyright © 2003–2019 Atlassian. All rights reserved.