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 Type
    Method
    Description
    boolean
    canCreate(Class<?> clazz)
    Checks whether a specific binding target type can be created by this factory.
    Create an input binding target that will be bound via a corresponding Binder.
    Create an output binding target that will be bound via a corresponding Binder.
  • Method Details

    • canCreate

      boolean canCreate(Class<?> clazz)
      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

      Object createInput(String name)
      Create an input binding target that will be bound via a corresponding Binder.
      Parameters:
      name - name of the binding target
      Returns:
      binding target
    • createOutput

      Object createOutput(String name)
      Create an output binding target that will be bound via a corresponding Binder.
      Parameters:
      name - name of the binding target
      Returns:
      binding target