@Configuration @ConditionalOnProperty(value="spring.cloud.stream.function.definition") @EnableConfigurationProperties(value=StreamFunctionProperties.class) public class FunctionConfiguration extends Object
| Constructor and Description |
|---|
FunctionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.stream.function.FunctionCatalogWrapper |
functionCatalogWrapper(org.springframework.cloud.function.context.FunctionCatalog catalog) |
IntegrationFlowFunctionSupport |
functionSupport(org.springframework.cloud.stream.function.FunctionCatalogWrapper functionCatalog,
org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector,
CompositeMessageConverterFactory messageConverterFactory,
StreamFunctionProperties functionProperties,
BindingServiceProperties bindingServiceProperties) |
org.springframework.integration.dsl.IntegrationFlow |
integrationFlowCreator(IntegrationFlowFunctionSupport functionSupport)
|
@Bean public IntegrationFlowFunctionSupport functionSupport(org.springframework.cloud.stream.function.FunctionCatalogWrapper functionCatalog, org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector, CompositeMessageConverterFactory messageConverterFactory, StreamFunctionProperties functionProperties, BindingServiceProperties bindingServiceProperties)
@Bean public org.springframework.cloud.stream.function.FunctionCatalogWrapper functionCatalogWrapper(org.springframework.cloud.function.context.FunctionCatalog catalog)
@ConditionalOnMissingBean @Bean public org.springframework.integration.dsl.IntegrationFlow integrationFlowCreator(IntegrationFlowFunctionSupport functionSupport)
IntegrationFlow from standard
Spring Cloud Stream bindings such as Source, Processor and
Sink ONLY if there are no existing instances of the IntegrationFlow
already available in the context. This means that it only plays a role in
green-field Spring Cloud Stream apps.
For logic to compose functions into the existing apps please see
"FUNCTION-TO-EXISTING-APP" section of AbstractMessageChannelBinder.
The @ConditionalOnMissingBean ensures it does not collide with the the instance of
the IntegrationFlow that may have been already defined by the existing (extended)
app.functionSupport - support for registering beansCopyright © 2019 Pivotal Software, Inc.. All rights reserved.