Package org.codelibs.fess.ingest
Class IngestFactory
java.lang.Object
org.codelibs.fess.ingest.IngestFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an ingester to the factory.Ingester[]Returns the array of registered ingesters sorted by priority.
-
Constructor Details
-
IngestFactory
public IngestFactory()Default constructor.
-
-
Method Details
-
add
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
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
-