Class CloudEventsFunctionInvocationHelper

java.lang.Object
org.springframework.cloud.function.cloudevent.CloudEventsFunctionInvocationHelper
All Implemented Interfaces:
org.springframework.beans.factory.Aware, FunctionInvocationHelper<org.springframework.messaging.Message<?>>, org.springframework.context.ApplicationContextAware

public class CloudEventsFunctionInvocationHelper extends Object implements FunctionInvocationHelper<org.springframework.messaging.Message<?>>, org.springframework.context.ApplicationContextAware
Implementation of FunctionInvocationHelper to support Cloud Events. This is a primary (and the only) integration bridge with SimpleFunctionRegistry.FunctionInvocationWrapper.
Since:
3.1
Author:
Oleg Zhurakousky
  • Method Details

    • isRetainOuputAsMessage

      public boolean isRetainOuputAsMessage(org.springframework.messaging.Message<?> message)
      Specified by:
      isRetainOuputAsMessage in interface FunctionInvocationHelper<org.springframework.messaging.Message<?>>
    • preProcessInput

      public org.springframework.messaging.Message<?> preProcessInput(org.springframework.messaging.Message<?> input, Object inputConverter)
      Specified by:
      preProcessInput in interface FunctionInvocationHelper<org.springframework.messaging.Message<?>>
    • setMessageConverter

      public void setMessageConverter(org.springframework.messaging.converter.CompositeMessageConverter messageConverter)
    • postProcessResult

      public org.springframework.messaging.Message<?> postProcessResult(Object result, org.springframework.messaging.Message<?> input)
      Specified by:
      postProcessResult in interface FunctionInvocationHelper<org.springframework.messaging.Message<?>>
    • 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