Class MessageChannelSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.dsl.MessageChannelSpec<S,C>
Type Parameters:
S - the target MessageChannelSpec implementation type.
C - the target AbstractMessageChannel implementation type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<C>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ComponentsRegistration
Direct Known Subclasses:
FluxMessageChannelSpec, LoadBalancingChannelSpec, PriorityChannelSpec, PublishSubscribeChannelSpec, QueueChannelSpec, RendezvousChannelSpec

public abstract class MessageChannelSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel> extends IntegrationComponentSpec<S,C> implements ComponentsRegistration
Since:
5.0
  • Field Details

  • Constructor Details

    • MessageChannelSpec

      protected MessageChannelSpec()
  • Method Details

    • datatype

      public S datatype(Class<?>... types)
    • interceptor

      public S interceptor(org.springframework.messaging.support.ChannelInterceptor... interceptorArray)
    • wireTap

      public S wireTap(String wireTapChannel)
      Populate the Wire Tap EI Pattern specific ChannelInterceptor implementation.
      Parameters:
      wireTapChannel - the MessageChannel bean name to wire-tap.
      Returns:
      the current MessageChannelSpec.
      See Also:
    • wireTap

      public S wireTap(org.springframework.messaging.MessageChannel wireTapChannel)
      Populate the Wire Tap EI Pattern specific ChannelInterceptor implementation.
      Parameters:
      wireTapChannel - the MessageChannel instance to wire-tap.
      Returns:
      the current MessageChannelSpec.
      See Also:
    • wireTap

      public S wireTap(WireTapSpec wireTapSpec)
      Populate the Wire Tap EI Pattern specific ChannelInterceptor implementation.
      Parameters:
      wireTapSpec - the WireTapSpec to build WireTap instance.
      Returns:
      the current MessageChannelSpec.
      See Also:
    • messageConverter

      public S messageConverter(org.springframework.messaging.converter.MessageConverter converter)
    • getComponentsToRegister

      public Map<Object,String> getComponentsToRegister()
      Specified by:
      getComponentsToRegister in interface ComponentsRegistration
    • doGet

      protected C doGet()
      Overrides:
      doGet in class IntegrationComponentSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>