Class AbstractBindingTargetFactory<T>
java.lang.Object
org.springframework.cloud.stream.binding.AbstractBindingTargetFactory<T>
- Type Parameters:
T- type of binding target
- All Implemented Interfaces:
BindingTargetFactory
- Direct Known Subclasses:
FluxMessageChannelBindingTargetFactory,MessageSourceBindingTargetFactory,SubscribableChannelBindingTargetFactory
public abstract class AbstractBindingTargetFactory<T>
extends Object
implements BindingTargetFactory
A
BindingTargetFactory implementation that restricts the type of binding target
to a specified class and its supertypes.- Author:
- Marius Bogoevici
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanChecks whether a specific binding target type can be created by this factory.abstract TcreateInput(String name) Create an input binding target that will be bound via a correspondingBinder.abstract TcreateOutput(String name) Create an output binding target that will be bound via a correspondingBinder.
-
Constructor Details
-
AbstractBindingTargetFactory
-
-
Method Details
-
canCreate
Description copied from interface:BindingTargetFactoryChecks whether a specific binding target type can be created by this factory.- Specified by:
canCreatein interfaceBindingTargetFactory- Parameters:
clazz- the binding target type- Returns:
- true if the binding target can be created
-
createInput
Description copied from interface:BindingTargetFactoryCreate an input binding target that will be bound via a correspondingBinder.- Specified by:
createInputin interfaceBindingTargetFactory- 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- Parameters:
name- name of the binding target- Returns:
- binding target
-