C
- the type of the target specific (native) context object.public abstract class AbstractSpringFunctionAdapterInitializer<C> extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected FunctionCatalog |
catalog |
protected JsonMapper |
jsonMapper |
static String |
TARGET_EXECUTION_CTX_BEAN_NAME
Name of the bean for registering the target execution context passed to `initialize(context)` operation.
|
Constructor and Description |
---|
AbstractSpringFunctionAdapterInitializer() |
AbstractSpringFunctionAdapterInitializer(Class<?> configurationClass) |
Modifier and Type | Method and Description |
---|---|
protected org.reactivestreams.Publisher<?> |
apply(org.reactivestreams.Publisher<?> input) |
void |
close() |
protected Object |
convertOutput(Object input,
Object output) |
protected String |
doResolveName(Object targetContext)
Allows you to resolve function name for cases where it
could not be located under default name.
|
protected Object |
function() |
org.springframework.context.ConfigurableApplicationContext |
getContext() |
protected Function<org.reactivestreams.Publisher<?>,org.reactivestreams.Publisher<?>> |
getFunction() |
protected Class<?> |
getInputType() |
protected FunctionInspector |
getInspector() |
protected void |
initialize(C targetContext) |
protected <O> O |
result(Object input,
org.reactivestreams.Publisher<?> output) |
public static final String TARGET_EXECUTION_CTX_BEAN_NAME
@Autowired(required=false) protected FunctionCatalog catalog
@Autowired(required=false) protected JsonMapper jsonMapper
public AbstractSpringFunctionAdapterInitializer(Class<?> configurationClass)
public AbstractSpringFunctionAdapterInitializer()
public org.springframework.context.ConfigurableApplicationContext getContext()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void initialize(C targetContext)
protected FunctionInspector getInspector()
protected Class<?> getInputType()
protected Function<org.reactivestreams.Publisher<?>,org.reactivestreams.Publisher<?>> getFunction()
protected Object function()
protected org.reactivestreams.Publisher<?> apply(org.reactivestreams.Publisher<?> input)
protected String doResolveName(Object targetContext)
targetContext
- the target context instanceprotected <O> O result(Object input, org.reactivestreams.Publisher<?> output)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.