public class KafkaStreamsBindableProxyFactory
extends org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
AbstractBindableProxyFactory for more details.
Targets bound by this factory:
KStream
KTable
GlobalKTable
This class looks at the Function bean's return signature as ResolvableType and introspect the individual types,
binding them on the way.
All types on the ResolvableType are bound except for KStream[] array types on the outbound, which will be
deferred for binding at a later stage. The reason for doing that is because in this class, we don't have any way to know
the actual size in the returned array. That has to wait until the function is invoked and we get a result.| Constructor and Description |
|---|
KafkaStreamsBindableProxyFactory(org.springframework.core.ResolvableType type,
String functionName,
Method method) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOutputBinding(String output,
Class<?> clazz) |
void |
afterPropertiesSet() |
String |
getFunctionName() |
Set<String> |
getInputs() |
Map<String,org.springframework.cloud.stream.binding.BoundTargetHolder> |
getOutputHolders() |
Set<String> |
getOutputs() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Set<String> getInputs()
getInputs in interface org.springframework.cloud.stream.binding.BindablegetInputs in class org.springframework.cloud.stream.binding.AbstractBindableProxyFactorypublic Set<String> getOutputs()
getOutputs in interface org.springframework.cloud.stream.binding.BindablegetOutputs in class org.springframework.cloud.stream.binding.AbstractBindableProxyFactorypublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic String getFunctionName()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.