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
ABindingTargetFactoryimplementation that restricts the type of binding target to a specified class and its supertypes.- Author:
- Marius Bogoevici
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBindingTargetFactory(Class<T> bindingTargetType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanCreate(Class<?> clazz)Checks 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.
-
-
-
Method Detail
-
canCreate
public final boolean canCreate(Class<?> clazz)
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
public abstract T createInput(String name)
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
public abstract T createOutput(String name)
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
-
-