Class MessageSourceBindingTargetFactory
java.lang.Object
org.springframework.cloud.stream.binding.AbstractBindingTargetFactory<PollableMessageSource>
org.springframework.cloud.stream.binding.MessageSourceBindingTargetFactory
- All Implemented Interfaces:
BindingTargetFactory
public class MessageSourceBindingTargetFactory
extends AbstractBindingTargetFactory<PollableMessageSource>
An implementation of
BindingTargetFactory for creating
DefaultPollableMessageSources.- Author:
- Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionMessageSourceBindingTargetFactory(org.springframework.messaging.converter.SmartMessageConverter messageConverter, MessageChannelConfigurer messageSourceConfigurer) -
Method Summary
Modifier and TypeMethodDescriptioncreateInput(String name) Create an input binding target that will be bound via a correspondingBinder.createOutput(String name) Create an output binding target that will be bound via a correspondingBinder.Methods inherited from class org.springframework.cloud.stream.binding.AbstractBindingTargetFactory
canCreate
-
Constructor Details
-
MessageSourceBindingTargetFactory
public MessageSourceBindingTargetFactory(org.springframework.messaging.converter.SmartMessageConverter messageConverter, MessageChannelConfigurer messageSourceConfigurer)
-
-
Method Details
-
createInput
Description copied from interface:BindingTargetFactoryCreate an input binding target that will be bound via a correspondingBinder.- Specified by:
createInputin interfaceBindingTargetFactory- Specified by:
createInputin classAbstractBindingTargetFactory<PollableMessageSource>- Parameters:
name- name of the binding target- Returns:
- binding target
-
createOutput
Description copied from interface:BindingTargetFactoryCreate an output binding target that will be bound via a correspondingBinder.- Specified by:
createOutputin interfaceBindingTargetFactory- Specified by:
createOutputin classAbstractBindingTargetFactory<PollableMessageSource>- Parameters:
name- name of the binding target- Returns:
- binding target
-