Search in sources :

Example 1 with MessageChannelStreamListenerResultAdapter

use of org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter in project spring-cloud-stream by spring-cloud.

the class StreamEmitterAnnotationBeanPostProcessor method afterSingletonsInstantiated.

@Override
public void afterSingletonsInstantiated() {
    this.parameterAdapters = this.applicationContext.getBeansOfType(StreamListenerParameterAdapter.class).values();
    this.resultAdapters = new ArrayList<>(this.applicationContext.getBeansOfType(StreamListenerResultAdapter.class).values());
    this.resultAdapters.add(new MessageChannelStreamListenerResultAdapter());
}
Also used : MessageChannelStreamListenerResultAdapter(org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter) StreamListenerResultAdapter(org.springframework.cloud.stream.binding.StreamListenerResultAdapter) MessageChannelStreamListenerResultAdapter(org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter)

Aggregations

MessageChannelStreamListenerResultAdapter (org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter)1 StreamListenerResultAdapter (org.springframework.cloud.stream.binding.StreamListenerResultAdapter)1