Interface IndexExtractorRegistrationManager
- All Known Implementing Classes:
DefaultIndexExtractorRegistrationManager
public interface IndexExtractorRegistrationManager
Manages index extractors.
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescription<T> Collection<EntityIndexExtractor<T>> findExtractorsForEntity(Class<T> entityClass) Returns all extractors that can be applied for the specified class, no subclasses are taken into account.<T> voidregister(EntityIndexExtractor<? super T> extractor, Class<T> entityClass) Registers extractor as capable of processing documents for the specified class.<T> voidunregister(EntityIndexExtractor<? super T> extractor, Class<T> entityClass) Removes this extractor (identified byequalsmethod) from processing the registered class.
-
Method Details
-
findExtractorsForEntity
Returns all extractors that can be applied for the specified class, no subclasses are taken into account.- Parameters:
entityClass- class object to search for extractors.- Returns:
- list of extractors.
-
register
Registers extractor as capable of processing documents for the specified class.- Parameters:
extractor- the extractor that will be registered for processing entities ofentityClass.entityClass- class that is processed by this extractor.
-
unregister
Removes this extractor (identified byequalsmethod) from processing the registered class.- Parameters:
extractor- instance of extractor to be unregistered.entityClass- class that this extractor should be unregistered from.
-