Package com.atlassian.jira.index
Class DefaultSearchExtractorRegistrationManager
java.lang.Object
com.atlassian.jira.index.DefaultSearchExtractorRegistrationManager
- All Implemented Interfaces:
SearchExtractorRegistrationManager
public class DefaultSearchExtractorRegistrationManager
extends Object
implements SearchExtractorRegistrationManager
Default implementation of
SearchExtractorRegistrationManager- Since:
- 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Collection<EntitySearchExtractor<T>>findExtractorsForEntity(Class<T> entityClass) Return all extractors that can be applied for specified class no subclasses are taken into account<T> voidregister(EntitySearchExtractor<? super T> extractor, Class<T> entityClass) Registers extractor as capable of processing documents of specified class<T> voidunregister(EntitySearchExtractor<? super T> extractor, Class<T> entityClass) Remove this extractor (identified by equals method) from processing all registered classes.
-
Constructor Details
-
DefaultSearchExtractorRegistrationManager
public DefaultSearchExtractorRegistrationManager()
-
-
Method Details
-
findExtractorsForEntity
Description copied from interface:SearchExtractorRegistrationManagerReturn all extractors that can be applied for specified class no subclasses are taken into account- Specified by:
findExtractorsForEntityin interfaceSearchExtractorRegistrationManager- Parameters:
entityClass- class object to search for extractors- Returns:
- list of extractors
-
register
Description copied from interface:SearchExtractorRegistrationManagerRegisters extractor as capable of processing documents of specified class- Specified by:
registerin interfaceSearchExtractorRegistrationManager- Parameters:
extractor- the extractor that will be registered for processing entities ofentityClassentityClass- class that is process by this extractor
-
unregister
Description copied from interface:SearchExtractorRegistrationManagerRemove this extractor (identified by equals method) from processing all registered classes.- Specified by:
unregisterin interfaceSearchExtractorRegistrationManager- Parameters:
extractor- instance of extractor to be unregisteredentityClass- class that this extractor should be unregistered from.
-