Class JmsMessageDrivenChannelAdapterSpec<S extends JmsMessageDrivenChannelAdapterSpec<S>>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
org.springframework.integration.dsl.MessageProducerSpec<S,JmsMessageDrivenEndpoint>
org.springframework.integration.jms.dsl.JmsMessageDrivenChannelAdapterSpec<S>
Type Parameters:
S - the target JmsMessageDrivenChannelAdapterSpec 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<JmsMessageDrivenEndpoint>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec

public class JmsMessageDrivenChannelAdapterSpec<S extends JmsMessageDrivenChannelAdapterSpec<S>> extends org.springframework.integration.dsl.MessageProducerSpec<S,JmsMessageDrivenEndpoint>
A MessageProducerSpec for JmsMessageDrivenEndpoints.
Since:
5.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<S extends JmsListenerContainerSpec<S,C>,C extends org.springframework.jms.listener.AbstractMessageListenerContainer>
     
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    PARSER, target

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JmsMessageDrivenChannelAdapterSpec(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    extractPayload(boolean extractRequestPayload)
     
     
    jmsMessageConverter(org.springframework.jms.support.converter.MessageConverter messageConverter)
     
    shutdownContainerOnStop(boolean shutdown)
    Set to false to prevent listener container shutdown when the endpoint is stopped.

    Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec

    autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrack

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmsMessageDrivenChannelAdapterSpec

      protected JmsMessageDrivenChannelAdapterSpec(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)
  • Method Details

    • jmsMessageConverter

      public S jmsMessageConverter(org.springframework.jms.support.converter.MessageConverter messageConverter)
      Parameters:
      messageConverter - the messageConverter.
      Returns:
      the spec.
      See Also:
    • headerMapper

      public S headerMapper(JmsHeaderMapper headerMapper)
      Parameters:
      headerMapper - the headerMapper.
      Returns:
      the spec.
      See Also:
    • extractPayload

      public S extractPayload(boolean extractRequestPayload)
      Parameters:
      extractRequestPayload - the extractRequestPayload.
      Returns:
      the spec.
      See Also:
    • shutdownContainerOnStop

      public S shutdownContainerOnStop(boolean shutdown)
      Set to false to prevent listener container shutdown when the endpoint is stopped. Then, if so configured, any cached consumer(s) in the container will remain. Otherwise the shared connection and will be closed and the listener invokers shut down; this behavior is new starting with version 5.1. Default: true.
      Parameters:
      shutdown - false to not shutdown.
      Returns:
      the spec.
      Since:
      5.1