Class JmsDestinationAccessorSpec<S extends JmsDestinationAccessorSpec<S,​A>,​A extends org.springframework.jms.support.destination.JmsDestinationAccessor>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,​A>
org.springframework.integration.jms.dsl.JmsDestinationAccessorSpec<S,​A>
Type Parameters:
S - the target JmsDestinationAccessorSpec implementation type.
A - the target JmsDestinationAccessor 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<A>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
JmsListenerContainerSpec, JmsTemplateSpec

public abstract class JmsDestinationAccessorSpec<S extends JmsDestinationAccessorSpec<S,​A>,​A extends org.springframework.jms.support.destination.JmsDestinationAccessor>
extends org.springframework.integration.dsl.IntegrationComponentSpec<S,​A>
A base IntegrationComponentSpec for JmsDestinationAccessors.
Since:
5.0
  • 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 JmsDestinationAccessorSpec​(A accessor)  
  • Method Summary

    Modifier and Type Method Description
    protected S connectionFactory​(javax.jms.ConnectionFactory connectionFactory)  
    S destinationResolver​(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
    A DestinationResolver to use.
    S id​(java.lang.String id)  
    S pubSubDomain​(boolean pubSubDomain)
    A pubSubDomain flag.
    S sessionAcknowledgeMode​(int sessionAcknowledgeMode)
    A session acknowledgement mode.
    S sessionAcknowledgeModeName​(java.lang.String constantName)
    A session acknowledgement mode name.
    S sessionTransacted​(boolean sessionTransacted)
    A session transaction mode.

    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

  • Method Details

    • connectionFactory

      protected S connectionFactory​(javax.jms.ConnectionFactory connectionFactory)
    • id

      public S id​(java.lang.String id)
      Overrides:
      id in class org.springframework.integration.dsl.IntegrationComponentSpec<S extends JmsDestinationAccessorSpec<S,​A>,​A extends org.springframework.jms.support.destination.JmsDestinationAccessor>
    • destinationResolver

      public S destinationResolver​(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
      A DestinationResolver to use.
      Parameters:
      destinationResolver - the DestinationResolver to use.
      Returns:
      the spec
      See Also:
      JmsDestinationAccessor.setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver)
    • pubSubDomain

      public S pubSubDomain​(boolean pubSubDomain)
      A pubSubDomain flag.
      Parameters:
      pubSubDomain - the pubSubDomain flag.
      Returns:
      the spec
      See Also:
      JmsDestinationAccessor.setPubSubDomain(boolean)
    • sessionAcknowledgeMode

      public S sessionAcknowledgeMode​(int sessionAcknowledgeMode)
      A session acknowledgement mode.
      Parameters:
      sessionAcknowledgeMode - the acknowledgement mode constant
      Returns:
      the spec
      See Also:
      etc., JmsAccessor.setSessionAcknowledgeMode(int)
    • sessionAcknowledgeModeName

      public S sessionAcknowledgeModeName​(java.lang.String constantName)
      A session acknowledgement mode name.
      Parameters:
      constantName - the name of the Session acknowledge mode constant.
      Returns:
      the spec.
      See Also:
      JmsAccessor.setSessionAcknowledgeModeName(java.lang.String)
    • sessionTransacted

      public S sessionTransacted​(boolean sessionTransacted)
      A session transaction mode.
      Parameters:
      sessionTransacted - the transaction mode.
      Returns:
      the spec.
      See Also:
      JmsAccessor.setSessionTransacted(boolean)