Class SimpleFunctionRegistry.FunctionInvocationWrapper
java.lang.Object
org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper
- Enclosing class:
SimpleFunctionRegistry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidget()!!!Returns the definition of this function.getItemType(Type type) Return the actualTypeof the item of the provided type.Class<?> Class<?> booleanReturns true if this function wrapper represents a composed function.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidrun()voidsetEnhancer(Function<Object, Object> enhancer) !!!voidsetPojoFunction(boolean isPojoFunction) voidsetSkipInputConversion(boolean skipInputConversion) voidsetSkipOutputConversion(boolean skipOutputConversion) voidsetWrappedBiConsumer(boolean wrappedBiConsumer) toString()
-
Field Details
-
wrapped
protected boolean wrapped
-
-
Method Details
-
postProcess
public void postProcess() -
isWrappedBiConsumer
public boolean isWrappedBiConsumer() -
setWrappedBiConsumer
public void setWrappedBiConsumer(boolean wrappedBiConsumer) -
setPojoFunction
public void setPojoFunction(boolean isPojoFunction) -
isPojoFunction
public boolean isPojoFunction() -
isSkipOutputConversion
public boolean isSkipOutputConversion() -
isSkipInputConversion
public boolean isSkipInputConversion() -
isPrototype
public boolean isPrototype() -
setSkipInputConversion
public void setSkipInputConversion(boolean skipInputConversion) -
setSkipOutputConversion
public void setSkipOutputConversion(boolean skipOutputConversion) -
getEnhancer
!!! INTERNAL USE ONLY !!! This is primarily to support s-c-Stream's ability to access un-converted payload (e.g., to evaluate expression on some attribute of a payload) It is not intended to remain here and will be removed as soon as particular elements of stream will be refactored to address this. -
getOutputType
-
setEnhancer
!!! INTERNAL USE ONLY !!! This is primarily to support s-c-Stream's ability to access un-converted payload (e.g., to evaluate expression on some attribute of a payload) It is not intended to remain here and will be removed as soon as particular elements of stream will be refactored to address this. -
getTarget
-
getInputType
-
getItemType
Return the actualTypeof the item of the provided type. This method is context specific and is not a general purpose utility method. The context is that the providedTypemay represent the input/output of a function where such type could be wrapped inMessage,FluxorMono, so this method returns generic value of such type or itself if not wrapped.- Parameters:
type- typically input or output Type of the function (seegetInputType()orgetOutputType().- Returns:
- the type of the item if wrapped otherwise the provided type.
-
getRawOutputType
-
getRawInputType
-
apply
-
get
-
accept
-
run
-
isConsumer
public boolean isConsumer() -
isSupplier
public boolean isSupplier() -
isFunction
public boolean isFunction() -
isInputTypePublisher
public boolean isInputTypePublisher() -
isOutputTypePublisher
public boolean isOutputTypePublisher() -
isInputTypeMessage
public boolean isInputTypeMessage() -
isOutputTypeMessage
public boolean isOutputTypeMessage() -
isRoutingFunction
public boolean isRoutingFunction() -
andThen
-
getFunctionDefinition
Returns the definition of this function.- Returns:
- function definition
-
toString
-
isComposed
public boolean isComposed()Returns true if this function wrapper represents a composed function.- Returns:
- true if this function wrapper represents a composed function otherwise false
-