@Configuration @EnableConfigurationProperties(value=StreamFunctionProperties.class) @Import(value=BinderFactoryConfiguration.class) @AutoConfigureBefore(value=BindingServiceConfiguration.class) public class FunctionConfiguration extends Object
| Constructor and Description |
|---|
FunctionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
IntegrationFlowFunctionSupport |
functionSupport(org.springframework.cloud.function.context.FunctionCatalog functionCatalog,
org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector,
CompositeMessageConverterFactory messageConverterFactory,
StreamFunctionProperties functionProperties,
BindingServiceProperties bindingServiceProperties) |
org.springframework.integration.dsl.IntegrationFlow |
integrationFlowCreator(IntegrationFlowFunctionSupport functionSupport,
Source source,
Processor processor,
Sink sink)
|
@Bean public IntegrationFlowFunctionSupport functionSupport(org.springframework.cloud.function.context.FunctionCatalog functionCatalog, org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector, CompositeMessageConverterFactory messageConverterFactory, StreamFunctionProperties functionProperties, BindingServiceProperties bindingServiceProperties)
@ConditionalOnMissingBean @Bean public org.springframework.integration.dsl.IntegrationFlow integrationFlowCreator(IntegrationFlowFunctionSupport functionSupport, @Nullable Source source, @Nullable Processor processor, @Nullable Sink sink)
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 beanssource - source bindingprocessor - processor bindingsink - sink bindingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.