Class FunctionAroundWrapper
java.lang.Object
org.springframework.cloud.function.context.catalog.FunctionAroundWrapper
- Direct Known Subclasses:
ObservationFunctionAroundWrapper
Wrapper that acts as around advise over function invocation.
If registered as bean it will be autowired into
SimpleFunctionRegistry.FunctionInvocationWrapper.
Keep in mind that it only affects imperative invocations where input is Message
NOTE: This API is experimental and and could change without notice. It is
intended for internal use only (e.g., spring-cloud-sleuth)- Since:
- 3.1
- Author:
- Oleg Zhurakousky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectapply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction) protected abstract ObjectdoApply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)
-
Constructor Details
-
FunctionAroundWrapper
public FunctionAroundWrapper()
-
-
Method Details
-
apply
public final Object apply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction) -
doApply
protected abstract Object doApply(Object input, SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)
-