Fixes https://github.com/spring-cloud/stream-applications/issues/275 Many functions make use of `ComponentCustomizer` ot let end-user to provide any custom configuration for target component used by the function. First of all for use-case which are not covered by standard configuration properties and secondly for those options which cannot be represented as a configuration option. * Add a sentence to READMEs of those functions which make use of `ComponentCustomizer` with an expected generic argument type * Add README into `rabbit-supplier` where it is fully missed at the moment
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
# Aggregator Function
|
|
|
|
This module provides an aggregation function that can be reused and composed in other applications.
|
|
|
|
## Beans for injection
|
|
|
|
You can import the `AggregatorFunctionConfiguration` in a Spring Boot application and then inject the following bean.
|
|
|
|
`aggregatorFunction`
|
|
|
|
You can use `aggregatorFunction` as a qualifier when injecting.
|
|
|
|
Once injected, you can use the `apply` method of the `Function` to invoke it and get the result.
|
|
|
|
## Configuration Options
|
|
|
|
For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionProperties.java[AggregatorFunctionProperties.java]
|
|
|
|
A `ComponentCustomizer<AggregatorFactoryBean>` bean can be added in the target project to provide any custom options for the `AggregatorFactoryBean` configuration used by the `aggregatorFunction` definition.
|
|
|
|
## Tests
|
|
|
|
See this link:src/test/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionApplicationTests.java[test suite] for examples of how this function is used.
|
|
|
|
## Other usage
|
|
|
|
See this link:../../../applications/processor/aggregator-processor/README.adoc[README] where this function is used to create a Spring Cloud Stream application.
|