Class SearchFieldMappingsRegistrations
- java.lang.Object
-
- com.atlassian.confluence.internal.search.v2.SearchFieldMappingsRegistrations
-
public class SearchFieldMappingsRegistrations extends Object
Eagerly registers all the core mappings defined inSearchFieldMappings
at startup. This ensures consistency e.g. if any of the mapping gets redefined by a plugin.- Since:
- 8.6
-
-
Constructor Summary
Constructors Constructor Description SearchFieldMappingsRegistrations(List<SearchIndexAccessor> indexAccessors, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
init()
void
onPluginStarted(PluginFrameworkStartedEvent e)
static void
register(FieldMappings mappings)
-
-
-
Constructor Detail
-
SearchFieldMappingsRegistrations
public SearchFieldMappingsRegistrations(List<SearchIndexAccessor> indexAccessors, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
onPluginStarted
@EventListener public void onPluginStarted(PluginFrameworkStartedEvent e)
-
register
public static void register(FieldMappings mappings)
-
-