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 Summary
Modifier and TypeMethodDescriptionboolean
isRetainOuputAsMessage
(org.springframework.messaging.Message<?> message) org.springframework.messaging.Message<?>
postProcessResult
(Object result, org.springframework.messaging.Message<?> input) org.springframework.messaging.Message<?>
preProcessInput
(org.springframework.messaging.Message<?> input, Object inputConverter) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setMessageConverter
(org.springframework.messaging.converter.CompositeMessageConverter messageConverter)
-
Method Details
-
isRetainOuputAsMessage
public boolean isRetainOuputAsMessage(org.springframework.messaging.Message<?> message) - Specified by:
isRetainOuputAsMessage
in interfaceFunctionInvocationHelper<org.springframework.messaging.Message<?>>
-
preProcessInput
public org.springframework.messaging.Message<?> preProcessInput(org.springframework.messaging.Message<?> input, Object inputConverter) - Specified by:
preProcessInput
in interfaceFunctionInvocationHelper<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 interfaceFunctionInvocationHelper<org.springframework.messaging.Message<?>>
-
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
-