Class 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
    • Field Detail

      • PREFIX

        public static final String PREFIX
        The name prefix for properties defined by this properties class.
        See Also:
        Constant Field Values
      • SKIP_CONVERSION_HEADER

        @Deprecated
        public static final String SKIP_CONVERSION_HEADER
        Deprecated.
        since 3.1. Not used anymore
        Name of the header to be used to instruct function catalog to skip input type conversion.
        See Also:
        Constant Field Values
      • EXPECT_CONTENT_TYPE_HEADER

        public static final String EXPECT_CONTENT_TYPE_HEADER
        Name of the header to be used to instruct function to apply this content type for output conversion.
        See Also:
        Constant Field Values
      • ROUTING_EXPRESSION

        public static final String ROUTING_EXPRESSION
        SpEL expression to be used with RoutingFunction.
        See Also:
        Constant Field Values
      • FUNCTION_DEFINITION

        public static final String FUNCTION_DEFINITION
        The name of function definition property.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FunctionProperties

        public FunctionProperties()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext()
      • getDefinition

        public String getDefinition()
      • setDefinition

        public void setDefinition​(String definition)
      • getRoutingExpression

        public String getRoutingExpression()
      • setRoutingExpression

        public void setRoutingExpression​(String routingExpression)
      • getExpectedContentType

        public String getExpectedContentType()
      • setExpectedContentType

        public void setExpectedContentType​(String expectedContentType)
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • getIneligibleDefinitions

        public List<String> getIneligibleDefinitions()
      • setIneligibleDefinitions

        public void setIneligibleDefinitions​(List<String> definitions)