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 ofBindingTargetFactoryfor creatingDefaultPollableMessageSources.- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description MessageSourceBindingTargetFactory(org.springframework.messaging.converter.SmartMessageConverter messageConverter, MessageChannelConfigurer messageSourceConfigurer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollableMessageSourcecreateInput(String name)Create an input binding target that will be bound via a correspondingBinder.PollableMessageSourcecreateOutput(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 Detail
-
MessageSourceBindingTargetFactory
public MessageSourceBindingTargetFactory(org.springframework.messaging.converter.SmartMessageConverter messageConverter, MessageChannelConfigurer messageSourceConfigurer)
-
-
Method Detail
-
createInput
public PollableMessageSource createInput(String name)
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
public PollableMessageSource createOutput(String name)
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
-
-