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) |
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 KafkaStreamsBindableProxyFactory(org.springframework.core.ResolvableType type, String functionName)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public Set<String> getInputs()
getInputs
in interface org.springframework.cloud.stream.binding.Bindable
getInputs
in class org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
public Set<String> getOutputs()
getOutputs
in interface org.springframework.cloud.stream.binding.Bindable
getOutputs
in class org.springframework.cloud.stream.binding.AbstractBindableProxyFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public String getFunctionName()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.