Spring Function Catalog provides reusable function beans that Spring Cloud Function can discover and compose. In a document-loading application, its fileSupplier watches a directory, selects incoming files, and sends them into a processing pipeline. section 4.3.1 section 4.3.2
A typical loader connects the catalog function to application-defined components:
- Configure spring.cloud.function.definition with pipe-separated beans such as fileSupplier, documentReader, splitter, titleDeterminer, and vectorStoreConsumer. section 4.3.2
- Set file.supplier.directory to identify the watched directory and file.supplier.filename-regex to restrict accepted extensions. section 4.3.2
- Inject FunctionCatalog, look up the composed function, and call run() from an ApplicationRunner to start processing. section 4.3.4
spring.cloud.function.definition=\ fileSupplier|\ documentReader|\ splitter|\ titleDeterminer|\ vectorStoreConsumer
Shows the concise Spring Cloud Function definition that wires the catalog-provided fileSupplier into the document-processing pipeline. section 4.3.2
