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 invokers
Base implementation for adapter initializers and request handlers.
Since:
2.1
Author:
Oleg Zhurakousky
  • Field Details

    • 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:
    • catalog

      @Autowired(required=false) protected FunctionCatalog catalog
      Deprecated.
    • jsonMapper

      @Autowired(required=false) protected JsonMapper jsonMapper
      Deprecated.
  • Constructor Details

    • AbstractSpringFunctionAdapterInitializer

      public AbstractSpringFunctionAdapterInitializer(Class<?> configurationClass)
      Deprecated.
    • AbstractSpringFunctionAdapterInitializer

      public AbstractSpringFunctionAdapterInitializer()
      Deprecated.
  • Method Details

    • getContext

      public org.springframework.context.ConfigurableApplicationContext getContext()
      Deprecated.
    • close

      public void close()
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • 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
    • convertOutput

      protected Object convertOutput(Object input, Object output)
      Deprecated.
    • result

      protected <O> O result(Object input, org.reactivestreams.Publisher<?> output)
      Deprecated.
    • clear

      protected void clear(String name)
      Deprecated.