Class ContextFunctionCatalogAutoConfiguration
- java.lang.Object
-
- org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnMissingBean(FunctionCatalog.class) @EnableConfigurationProperties(FunctionProperties.class) @AutoConfigureAfter(name="org.springframework.cloud.function.deployer.FunctionDeployerConfiguration") public class ContextFunctionCatalogAutoConfiguration extends Object
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky, Artem Bilan, Anshul Mehra, Soby Chacko, Chris Bono
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextFunctionCatalogAutoConfiguration.JsonMapperConfiguration
protected static class
ContextFunctionCatalogAutoConfiguration.PlainFunctionScanConfiguration
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_MAPPER_PROPERTY
The name of the property to specify desired JSON mapper.
-
Constructor Summary
Constructors Constructor Description ContextFunctionCatalogAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionRegistry
functionCatalog(List<org.springframework.messaging.converter.MessageConverter> messageConverters, JsonMapper jsonMapper, org.springframework.context.ConfigurableApplicationContext context, FunctionInvocationHelper<org.springframework.messaging.Message<?>> functionInvocationHelper)
RoutingFunction
functionRouter(FunctionCatalog functionCatalog, FunctionProperties functionProperties, org.springframework.beans.factory.BeanFactory beanFactory, MessageRoutingCallback routingCallback, DefaultMessageRoutingHandler defaultMessageRoutingHandler)
-
-
-
Field Detail
-
JSON_MAPPER_PROPERTY
public static final String JSON_MAPPER_PROPERTY
The name of the property to specify desired JSON mapper. Available values are `jackson' and 'gson'.- See Also:
- Constant Field Values
-
-
Method Detail
-
functionCatalog
@Bean public FunctionRegistry functionCatalog(List<org.springframework.messaging.converter.MessageConverter> messageConverters, JsonMapper jsonMapper, org.springframework.context.ConfigurableApplicationContext context, @Nullable FunctionInvocationHelper<org.springframework.messaging.Message<?>> functionInvocationHelper)
-
functionRouter
@Bean("functionRouter") public RoutingFunction functionRouter(FunctionCatalog functionCatalog, FunctionProperties functionProperties, org.springframework.beans.factory.BeanFactory beanFactory, @Nullable MessageRoutingCallback routingCallback, @Nullable DefaultMessageRoutingHandler defaultMessageRoutingHandler)
-
-