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:
MessageSourceBindingTargetFactory
,SubscribableChannelBindingTargetFactory
public abstract class AbstractBindingTargetFactory<T> extends Object implements BindingTargetFactory
ABindingTargetFactory
implementation that restricts the type of binding target to a specified class and its supertypes.- Author:
- Marius Bogoevici
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBindingTargetFactory(Class<T> bindingTargetType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canCreate(Class<?> clazz)
Checks whether a specific binding target type can be created by this factory.abstract T
createInput(String name)
Create an input binding target that will be bound via a correspondingBinder
.abstract T
createOutput(String name)
Create an output binding target that will be bound via a correspondingBinder
.
-
-
-
Method Detail
-
canCreate
public final boolean canCreate(Class<?> clazz)
Description copied from interface:BindingTargetFactory
Checks whether a specific binding target type can be created by this factory.- Specified by:
canCreate
in interfaceBindingTargetFactory
- Parameters:
clazz
- the binding target type- Returns:
- true if the binding target can be created
-
createInput
public abstract T createInput(String name)
Description copied from interface:BindingTargetFactory
Create an input binding target that will be bound via a correspondingBinder
.- Specified by:
createInput
in interfaceBindingTargetFactory
- Parameters:
name
- name of the binding target- Returns:
- binding target
-
createOutput
public abstract T createOutput(String name)
Description copied from interface:BindingTargetFactory
Create an output binding target that will be bound via a correspondingBinder
.- Specified by:
createOutput
in interfaceBindingTargetFactory
- Parameters:
name
- name of the binding target- Returns:
- binding target
-
-