public class DefaultSearchExtractorRegistrationManager extends Object implements SearchExtractorRegistrationManager
SearchExtractorRegistrationManager
Constructor and Description |
---|
DefaultSearchExtractorRegistrationManager() |
Modifier and Type | Method and Description |
---|---|
<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 o 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.
|
public DefaultSearchExtractorRegistrationManager()
public <T> Collection<EntitySearchExtractor<T>> findExtractorsForEntity(Class<T> entityClass)
SearchExtractorRegistrationManager
findExtractorsForEntity
in interface SearchExtractorRegistrationManager
entityClass
- class object to search for extractorspublic <T> void register(EntitySearchExtractor<? super T> extractor, Class<T> entityClass)
SearchExtractorRegistrationManager
register
in interface SearchExtractorRegistrationManager
extractor
- the extractor that will be registered for processing entities of entityClass
entityClass
- class that is process by this extractorpublic <T> void unregister(EntitySearchExtractor<? super T> extractor, Class<T> entityClass)
SearchExtractorRegistrationManager
unregister
in interface SearchExtractorRegistrationManager
extractor
- instance of extractor to be unregisteredentityClass
- class that this extractor should be unregistered from.Copyright © 2002-2021 Atlassian. All Rights Reserved.