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 StringName of the header to be used to instruct function to apply this content type for output conversion.static final StringThe name of function definition property.static final StringThe name prefix for properties defined by this properties class.static final StringKey for the proxy name.static final StringSpEL expression to be used with RoutingFunction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetConfiguration(Map<String, FunctionProperties.FunctionConfigurationProperties> configuration) voidsetDefinition(String definition) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetExpectedContentType(String expectedContentType) voidsetIneligibleDefinitions(List<String> definitions) voidsetRoutingExpression(String routingExpression)
-
Field Details
-
PREFIX
The name prefix for properties defined by this properties class.- 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
-
PROXY
-
-
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:
setApplicationContextin 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:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
getIneligibleDefinitions
-
setIneligibleDefinitions
-