Interface IndexExtractorRegistrationManager

All Known Implementing Classes:
DefaultIndexExtractorRegistrationManager

public interface IndexExtractorRegistrationManager
Manages index extractors.
Since:
11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all extractors that can be applied for the specified class, no subclasses are taken into account.
    <T> void
    register(EntityIndexExtractor<? super T> extractor, Class<T> entityClass)
    Registers extractor as capable of processing documents for the specified class.
    <T> void
    unregister(EntityIndexExtractor<? super T> extractor, Class<T> entityClass)
    Removes this extractor (identified by equals method) from processing the registered class.
  • Method Details

    • findExtractorsForEntity

      <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.
      Parameters:
      entityClass - class object to search for extractors.
      Returns:
      list of extractors.
    • register

      <T> void register(EntityIndexExtractor<? super T> extractor, Class<T> entityClass)
      Registers extractor as capable of processing documents for the specified class.
      Parameters:
      extractor - the extractor that will be registered for processing entities of entityClass.
      entityClass - class that is processed by this extractor.
    • unregister

      <T> void unregister(EntityIndexExtractor<? super T> extractor, Class<T> entityClass)
      Removes this extractor (identified by equals method) from processing the registered class.
      Parameters:
      extractor - instance of extractor to be unregistered.
      entityClass - class that this extractor should be unregistered from.