Class AbstractSpringFunctionAdapterInitializer<C>
- java.lang.Object
-
- org.springframework.cloud.function.context.AbstractSpringFunctionAdapterInitializer<C>
-
- Type Parameters:
C
- the type of the target specific (native) context object.
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AzureSpringBootRequestHandler
,FunctionInvoker
,SpringBootRequestHandler
,SpringBootStreamHandler
@Deprecated public abstract class AbstractSpringFunctionAdapterInitializer<C> extends Object implements Closeable
Deprecated.since 3.1 in favor of individual implementations of invokersBase implementation for adapter initializers and request handlers.- Since:
- 2.1
- Author:
- Oleg Zhurakousky
-
-
Field Summary
Fields Modifier and Type Field Description protected FunctionCatalog
catalog
Deprecated.protected JsonMapper
jsonMapper
Deprecated.static String
TARGET_EXECUTION_CTX_NAME
Deprecated.Name of the bean for registering the target execution context passed to `initialize(context)` operation.
-
Constructor Summary
Constructors Constructor Description AbstractSpringFunctionAdapterInitializer()
Deprecated.AbstractSpringFunctionAdapterInitializer(Class<?> configurationClass)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.reactivestreams.Publisher<?>
apply(org.reactivestreams.Publisher<?> input)
Deprecated.protected void
clear(String name)
Deprecated.void
close()
Deprecated.protected Object
convertOutput(Object input, Object output)
Deprecated.protected String
doResolveName(Object targetContext)
Deprecated.Allows you to resolve function name for cases where it could not be located under default name.protected Object
function()
Deprecated.org.springframework.context.ConfigurableApplicationContext
getContext()
Deprecated.protected Function<org.reactivestreams.Publisher<?>,org.reactivestreams.Publisher<?>>
getFunction()
Deprecated.protected Class<?>
getInputType()
Deprecated.protected void
initialize(C targetContext)
Deprecated.protected <O> O
result(Object input, org.reactivestreams.Publisher<?> output)
Deprecated.
-
-
-
Field Detail
-
TARGET_EXECUTION_CTX_NAME
public static final String TARGET_EXECUTION_CTX_NAME
Deprecated.Name of the bean for registering the target execution context passed to `initialize(context)` operation.- See Also:
- Constant Field Values
-
catalog
@Autowired(required=false) protected FunctionCatalog catalog
Deprecated.
-
jsonMapper
@Autowired(required=false) protected JsonMapper jsonMapper
Deprecated.
-
-
Constructor Detail
-
AbstractSpringFunctionAdapterInitializer
public AbstractSpringFunctionAdapterInitializer(Class<?> configurationClass)
Deprecated.
-
AbstractSpringFunctionAdapterInitializer
public AbstractSpringFunctionAdapterInitializer()
Deprecated.
-
-
Method Detail
-
getContext
public org.springframework.context.ConfigurableApplicationContext getContext()
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
initialize
protected void initialize(C targetContext)
Deprecated.
-
getInputType
protected Class<?> getInputType()
Deprecated.
-
getFunction
protected Function<org.reactivestreams.Publisher<?>,org.reactivestreams.Publisher<?>> getFunction()
Deprecated.
-
function
protected Object function()
Deprecated.
-
apply
protected org.reactivestreams.Publisher<?> apply(org.reactivestreams.Publisher<?> input)
Deprecated.
-
doResolveName
protected String doResolveName(Object targetContext)
Deprecated.Allows you to resolve function name for cases where it could not be located under default name. Default implementation returns empty string.- Parameters:
targetContext
- the target context instance- Returns:
- the name of the function
-
result
protected <O> O result(Object input, org.reactivestreams.Publisher<?> output)
Deprecated.
-
clear
protected void clear(String name)
Deprecated.
-
-