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> void
register
(EntitySearchExtractor<? super T> extractor, Class<T> entityClass) Registers extractor as capable of processing documents of specified class<T> void
unregister
(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:SearchExtractorRegistrationManager
Return all extractors that can be applied for specified class no subclasses are taken into account- Specified by:
findExtractorsForEntity
in interfaceSearchExtractorRegistrationManager
- Parameters:
entityClass
- class object to search for extractors- Returns:
- list of extractors
-
register
Description copied from interface:SearchExtractorRegistrationManager
Registers extractor as capable of processing documents of specified class- Specified by:
register
in interfaceSearchExtractorRegistrationManager
- Parameters:
extractor
- the extractor that will be registered for processing entities ofentityClass
entityClass
- class that is process by this extractor
-
unregister
Description copied from interface:SearchExtractorRegistrationManager
Remove this extractor (identified by equals method) from processing all registered classes.- Specified by:
unregister
in interfaceSearchExtractorRegistrationManager
- Parameters:
extractor
- instance of extractor to be unregisteredentityClass
- class that this extractor should be unregistered from.
-