Class FunctionProperties
java.lang.Object
org.springframework.cloud.function.context.FunctionProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="spring.cloud.function")
public class FunctionProperties
extends Object
implements org.springframework.context.EnvironmentAware, org.springframework.context.ApplicationContextAware
- Since:
- 3.0
- Author:
- Oleg Zhurakousky
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of the header to be used to instruct function to apply this content type for output conversion.static final String
The name of function definition property.static final String
The name prefix for properties defined by this properties class.static final String
SpEL expression to be used with RoutingFunction.static final String
Deprecated.since 3.1. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContext
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConfiguration
(Map<String, FunctionProperties.FunctionConfigurationProperties> configuration) void
setDefinition
(String definition) void
setEnvironment
(org.springframework.core.env.Environment environment) void
setExpectedContentType
(String expectedContentType) void
setIneligibleDefinitions
(List<String> definitions) void
setRoutingExpression
(String routingExpression)
-
Field Details
-
PREFIX
The name prefix for properties defined by this properties class.- See Also:
-
SKIP_CONVERSION_HEADER
Deprecated.since 3.1. Not used anymoreName of the header to be used to instruct function catalog to skip input type conversion.- See Also:
-
EXPECT_CONTENT_TYPE_HEADER
Name of the header to be used to instruct function to apply this content type for output conversion.- See Also:
-
ROUTING_EXPRESSION
SpEL expression to be used with RoutingFunction.- See Also:
-
FUNCTION_DEFINITION
The name of function definition property.- See Also:
-
-
Constructor Details
-
FunctionProperties
public FunctionProperties()
-
-
Method Details
-
getConfiguration
-
setConfiguration
public void setConfiguration(Map<String, FunctionProperties.FunctionConfigurationProperties> configuration) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
getDefinition
-
setDefinition
-
getRoutingExpression
-
setRoutingExpression
-
getExpectedContentType
-
setExpectedContentType
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
getIneligibleDefinitions
-
setIneligibleDefinitions
-