Class JmsDestinationAccessorSpec<S extends JmsDestinationAccessorSpec<S,A>,A extends 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 targetJmsDestinationAccessorSpec
implementation type.A
- the targetJmsDestinationAccessor
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<A>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
JmsListenerContainerSpec
,JmsTemplateSpec
public abstract class JmsDestinationAccessorSpec<S extends JmsDestinationAccessorSpec<S,A>,A extends JmsDestinationAccessor> extends IntegrationComponentSpec<S,A>
A base
IntegrationComponentSpec
for JmsDestinationAccessor
s.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
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(DestinationResolver destinationResolver)
ADestinationResolver
to use.S
id(String id)
Configure the component identifier.S
pubSubDomain(boolean pubSubDomain)
ApubSubDomain
flag.S
sessionAcknowledgeMode(int sessionAcknowledgeMode)
A session acknowledgement mode.S
sessionAcknowledgeModeName(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
-
Constructor Details
-
Method Details
-
connectionFactory
-
id
Description copied from class:IntegrationComponentSpec
Configure the component identifier. Used as thebeanName
to register the bean in the application context for this component.- Overrides:
id
in classIntegrationComponentSpec<S extends JmsDestinationAccessorSpec<S,A>,A extends JmsDestinationAccessor>
- Parameters:
id
- the id.- Returns:
- the spec.
-
destinationResolver
ADestinationResolver
to use.- Parameters:
destinationResolver
- theDestinationResolver
to use.- Returns:
- the spec
- See Also:
JmsDestinationAccessor.setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver)
-
pubSubDomain
ApubSubDomain
flag.- Parameters:
pubSubDomain
- thepubSubDomain
flag.- Returns:
- the spec
- See Also:
JmsDestinationAccessor.setPubSubDomain(boolean)
-
sessionAcknowledgeMode
A session acknowledgement mode.- Parameters:
sessionAcknowledgeMode
- the acknowledgement mode constant- Returns:
- the spec
- See Also:
etc.
,JmsAccessor.setSessionAcknowledgeMode(int)
-
sessionAcknowledgeModeName
A session acknowledgement mode name.- Parameters:
constantName
- the name of theSession
acknowledge mode constant.- Returns:
- the spec.
- See Also:
JmsAccessor.setSessionAcknowledgeModeName(java.lang.String)
-
sessionTransacted
A session transaction mode.- Parameters:
sessionTransacted
- the transaction mode.- Returns:
- the spec.
- See Also:
JmsAccessor.setSessionTransacted(boolean)
-