Class IngestFactory

java.lang.Object
org.codelibs.fess.ingest.IngestFactory

public class IngestFactory extends Object
Factory class for managing and organizing document ingesters. The factory maintains a sorted collection of ingesters based on their priority and provides methods to add new ingesters and retrieve the current collection. Ingesters are automatically sorted by priority, with lower numbers having higher priority.
  • Constructor Details

    • IngestFactory

      public IngestFactory()
      Default constructor.
  • Method Details

    • add

      public void add(Ingester ingester)
      Adds an ingester to the factory. The ingester is inserted into the collection and the array is re-sorted by priority. This method is thread-safe.
      Parameters:
      ingester - the ingester to add
    • getIngesters

      public Ingester[] getIngesters()
      Returns the array of registered ingesters sorted by priority. The returned array contains all ingesters in priority order (lower priority numbers first).
      Returns:
      the sorted array of ingesters