Interface BindingTargetFactory
- All Known Implementing Classes:
AbstractBindingTargetFactory,FluxMessageChannelBindingTargetFactory,MessageSourceBindingTargetFactory,SubscribableChannelBindingTargetFactory
public interface BindingTargetFactory
Defines methods to create/configure the binding targets defined by
org.springframework.cloud.stream.annotation.EnableBinding.- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether a specific binding target type can be created by this factory.createInput(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.
-
Method Details
-
canCreate
Checks whether a specific binding target type can be created by this factory.- Parameters:
clazz- the binding target type- Returns:
- true if the binding target can be created
-
createInput
Create an input binding target that will be bound via a correspondingBinder.- Parameters:
name- name of the binding target- Returns:
- binding target
-
createOutput
Create an output binding target that will be bound via a correspondingBinder.- Parameters:
name- name of the binding target- Returns:
- binding target
-